-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implement freezeOnBlur
#71
Comments
Hi @okwasniewski , I've been reviewing the This approach leverages However, for NativeBottomTabs, we're using platform-specific APIs to create the bottom tabs, which means we aren’t leveraging One possibility might be to use information about loaded tabs to manage freezing behaviour (see reference). Additionally, Thanks for your guidance! |
Hey @shubhamguptadream11, Thanks for looking into this! I was thinking that we can take the JS implementation and wrap each screen with We are currently wrapping each screen with View anyways so this can be changed to the ScreenFallback: react-native-bottom-tabs/src/TabView.tsx Line 257 in 9ab4eea
This should be an optional peer dependency as this prop will be optional. |
Looks like in V7 its called |
It's purpose is to save memory by detaching the view. But to make |
freezeOnBlur
Boolean indicating whether to prevent inactive screens from re-rendering. Defaults to false. Defaults to true when enableFreeze() from react-native-screens package is run at the top of the application.
Requires react-native-screens version >=3.16.0.
Only supported on iOS and Android.
The text was updated successfully, but these errors were encountered: