v3.0.5
Full Changelog: v3.0.4...v3.0.5
Large number of routes massively drop JS frame rate when switching tabs. satya164/react-native-tab-view#720
<TabView
state={{ index, routes }}
renderScene={renderScene}
onIndexChange={setIndex}
scrollEnabled={true}
renderTabBar={renderTabBar}
shouldSceneRender={({ index, state }) => state.index >= index - 1 && state.index <= index + 1}
/>
In this example only the previous (n-1) and the next (n+1) scene will be rendered. The other scenes will show a blank screen.