ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 415 forks source link

sometimes don't want to refresh view when switch tab #105

Closed suinia closed 8 years ago

suinia commented 8 years ago

especially use view scroll i want keep view status when switch back

ide commented 8 years ago

If your app is behaving differently because it is getting re-rendered extra times then you probably have a bug. With React your components should be able to be re-rendered extra times and still produce the correct output. If you still want this behavior you should do it in your own application code, write a container with shouldComponentUpdate.