You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightbox: Use 100% width/height instead of window dimensions
In theory this could help prevent jank, if it ever takes a frame or
two for the orientation-change event to come over the React Native
bridge.
The idea came from work on the offline notice's new layout:
#5491 (comment)
…Ah, in theory, but also in practice, too! See Greg's report of
observing some actual jank on Android that this fixes:
#5566 (review)
Greg also points out a theoretical bug that would be worse, and
that's fixed by taking Redux and RN's Dimensions API out of the
picture: with the old code, it would seem possible to get into a
persistent state where the layout is confused between portrait and
landscape dimensions:
#5566 (comment)
0 commit comments