Android freeze not working if layout changes since >= 3.30.0 #2349
Labels
Platform: Android
This issue is specific to Android
Repro provided
A reproduction with a snack or repo is provided
Description
Since
react-native-screens: >= 3.30.0
, usingfreezeOnBlur: true
in@react-navigation/bottom-tabs
or usingenableFreeze
directly fromreact-native-screens
, tabs that are not in focus still triggeronLayout
changes for the following scenarios:I would expect that a tab which is not in focus to not undergo a layout change.
Notice in the video, when rotating the device, the home page, which is not in focus, still has a layout change.
video.mp4
Steps to reproduce
freezeOnBlur: true
inTab.Navigator
screenOptions
from@react-navigation/bottom-tabs
or directly callenableFreeze
fromreact-native-screens
Snack or a link to a repository
https://github.com/adxzhang1/react-native-screens/tree/unfocus-freeze
Screens version
>= 3.30.0
React Native version
>= 0.72
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: