Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze snapshot #9

Open
ethanshar opened this issue Nov 14, 2021 · 4 comments
Open

Freeze snapshot #9

ethanshar opened this issue Nov 14, 2021 · 4 comments

Comments

@ethanshar
Copy link

It would have been great if freezing a component will generate some sort of a non-reactive snapshot that can be displayed instead of returning null.
That would great with showing temporarily blanks screens/components till they get unfreeze

@nandorojo
Copy link

Not sure if this is possible, but it would be awesome.

One (hack) idea could be to use react-native-view-shot to capture an image onBlur, and render that as the fallback.

@niraj-khatiwada
Copy link

It would have been great if freezing a component will generate some sort of a non-reactive snapshot that can be displayed instead of returning null. That would great with showing temporarily blanks screens/components till they get unfreeze

I was under the impression that this library was for this thing. I got my hopes high. But anyway, it would be great if we could display the snapshot until the interaction manager is complete. This would be game changer specially for Android.

@JustMaier
Copy link

We dealt with this by capturing the innerHTML of the node we planned to freeze before freezing and using that as the placeholder. Seemed to work.

@saxenanickk
Copy link

Anyone did this with the react-native?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants