react-native-composite-navigation icon indicating copy to clipboard operation
react-native-composite-navigation copied to clipboard

use StateUtils.jumpTo(),it will re-render the prevscenes.

Open sunny635533 opened this issue 8 years ago • 2 comments

Hello,when i jump between the different tabs and use StateUtils.jumpTo(),it will re-render the prescenes ,then it jumped that tab. I don't know why use jumpTo(),all the secenes will re-redner ervey time when i click another tab's secene.

sunny635533 avatar Feb 21 '17 04:02 sunny635533

Hey @sunny635533 this example does not use NavigationStack per tab Basically you should use NavigationStack per Tab to not re-render on changing Tabs. You should initially set routes for those tabs and navigate between them.

I created this repo when Navigation was still experimental in react-native. You should use this react navigation solution instead.

nak1b avatar Feb 21 '17 04:02 nak1b

@nak1b thanks,i am reading it now.

sunny635533 avatar May 09 '17 08:05 sunny635533