Skip to content

v3.0.5

Compare
Choose a tag to compare
@bilaleren bilaleren released this 19 Apr 13:50
· 3 commits to master since this release

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.