fixes backdrop flash when content height is increasing#562
fixes backdrop flash when content height is increasing#562somebody32 wants to merge 1 commit intogorhom:v2from
Conversation
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
@gorhom commenting as soon as this is still mergeable |
|
i will look into this pr this weekend, thanks for submitting it @somebody32 |
|
@gorhom ping |
1 similar comment
|
@gorhom ping |
|
I still have this problem in the latest version (v4). If I have multiple bottom sheets inside a screen and a TextInput not inside any of the bottom sheets blurs, the animated index changes for a split second and the backdrop flashes. Any ideas? @somebody32 |
|
@somebody32 anyway to integrate this fix till it gets merged? |
|
This PR is way out of date and should probably be closed. |
|
I'm still facing this issue on 5.1.6 so I don't think this is stale 🙈 @gorhom any chance this might get resolved soon? |
Motivation
This PR fixes #436.
The culprit of the issue was a sudden drop in
animatedIndexbecause of the height change, so the approach is to detect if theanimatedIndexachieved max value already (ie backdrop appeared fully) and then interpolate only ifanimatedIndexvalues start to decrease.Another important topic is how to render the backdrop itself. The doc suggests something like that:
which, surprisingly, causes flicker sometimes because react unmounts and mounts the backdrop on height changes. The fix is to add
keyprop:Video
bottom_sheet_fix.mp4