-
Notifications
You must be signed in to change notification settings - Fork 478
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
[Android] makeImageFromView takes a snapshot of the flatlist, the result has padding on it #2063
Comments
Experiencing this as well |
This might be down to how a FlatList renders on React Native. It's derived from VirtualizedList, which as they say in the docs:
|
Hey @louix thank you for your explanation. So, is this the expected behavior ? And is there a workaround for it? |
The underlying problem is not attributed to padding but to snapshots being captured from the top part of the FlatList, which may have already unmounted some components due to scroll offset. Should be solved by #2306 |
Hey @Nodonisko, thank you for your explanation. I hope that PR will be included in the next release. Thank you very much. |
Hey @Nodonisko, after updating Skia to version 1.0.5, this issue has been fixed. Thank you very much. |
Description
Hey, When I try to take a snapshot of a View that has a Flatlist using makeImageFromView, if I scroll down the Flatlist, then take a snapshot, the result of the snapshot will have padding on it, this happens only on Android works fine on iOS.
Please see the GIF below
Thank You
Version
0.1.229
Steps to reproduce
Snack, code example, screenshot, or link to a repository
https://github.com/Rakha112/BugMakeImageFromView
The text was updated successfully, but these errors were encountered: