enableFreeze can not prevent re-render caused by useIsFocused hook #2005
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
there have two screen in my application, I press one item navigate to detail screen, when I get into detail screen, the last search screen re-rendered, I used the useIsFocused hook in search.jsx,
the react navigation doc show that using useIsFocused hook triggers a re-render for the screen when it changes focus, Is this the reason? This can show the enableFreeze can not freeze screen which called useIsFocused?
Steps to reproduce
2.Navigate to search screen.
3.tap item to detail screen
4.when get into detail screen, search screen re-render
Snack or a link to a repository
https://snack.expo.dev/hz-a9zzR7
Screens version
~3.20.0
React Native version
0.71.14
Platforms
iOS
JavaScript runtime
JSC
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 14 pro max
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: