This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
v1.0.0
Breaking changes
- Rename exports to simplify the names:
TabViewAnimated
->TabView
TabViewPagerPan
->PagerPan
TabViewPagerScroll
->PagerScroll
TabViewPagerAndroid
->PagerAndroid
TabViewPagerExperimental
->PagerExperimental
- Export Flow types from the main file, so instead of importing types from
react-native-tab-view/types
, you can now import them fromreact-native-tab-view
directly:import type { Route } from 'react-native-tab-view/types'
->import { TabView, type Route } from 'react-native-tab-view'
- Remove deprecated
jumpToIndex
prop in favor ofjumpTo
:jumpToIndex(2)
->jumpTo('albums')
- Remove
renderHeader
andrenderFooter
in favor ofrenderTabBar
andtabBarPosition
('top' | 'bottom'
). - Render a tab bar by default. To remove the tab bar, use
renderTabBar={() => null}
- Don't pass
focused
andindex
properties in thescene
object. If you were using them earlier, you can useroutes.indexOf(route)
to get the index and compare it with the current index to get the focused state. canJumpToTab
now receives an object containing aroute
property instead of theroute
directly to make it consistent with other props.
New features
- Add new props for accessibility:
getAccessible
andgetAccessibilityLabel
toTabBar
. - Add a
getTestID
prop toTabBar
and pagers. - Make it possible to use
SceneMap
inside your component's render function. - Export
PagerDefault
which renders appropriate pager according to the platfrom.