All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix
navigationOptions
type fromNavigationScreenProp<NavigationRoute>
toNavigationScreenConfig<Options>
. - Fix missing
isFirstRouteInParent
type in typescript and flow. - Add missing
backTitleVisible
for typescript,disabled
andbackTitleVisible
for flow definitions in typeHeaderBackButtonProps
- Add missing
keyboardHidesTabBar
for TypeScript toTabViewConfig.tabBarOptions
- Add missing
unmountInactiveRoutes
for TypeScript toDrawerNavigatorConfig
- Export
SwitchActions
- Update Flow types - Add
cardShadowEnabled
andcardOverlayEnabled
to NavigationStackViewConfig - Upgrade react-navigation-tabs #5914
[3.10.0] - 2019-05-16
persistenceKey
no longer automatically saves and restores navigation state using AsyncStorage. Typically this would be a breaking change that would require a major version bump, but because this has always been marked as experimental in the documentation and it is unlikely to impact production apps, we are rolling it in a minor release.persistenceKey
has been replaced withpersistNavigationState
andloadNavigationState
. See the diff in docs: https://github.com/react-navigation/react-navigation.github.io/pull/425/files?short_path=b668b1a#diff-b668b1a4201e40b1378036dc012100fe
- Removed animations from stack on web
- Ensure that headerMode is float by default on web
- Prevent transitionConfig's useNativeDriver value being overwritten. (https://github.com/react-navigation/stack/commit/8b2af7d94209d4658abd8d799bc78744a1004b4e)
- Update typescript with headerLeftContainerStyle and headerRightContainerStyle
- Update typescript - Add
safeAreaInset
toBottomTabBarProps
- Update typescript -
TabBarTop
is nowMaterialTopTabBar
- Update typescript - Remove
SwitchNavigator
,TabNavigator
andStackNavigator
. Added exports forSceneView
andSwitchRouter
- Update typescript -
getLabel
is nowgetLabelText
in BottomTabProps and TopTabProps - Silence deprecated lifecycle warning in Stack Transitioner
[3.9.0] - 2019-04-23
- Remove
createTabNavigator
from type definitions - Add missing types for
DrawerNavigatorConfig
- Use
preserveFocus
action param rather than matching on specific action types to determine if index needs to be updated if child router changes (react-navigation/core#56)
[3.8.1] - 2019-04-12
- Add missing type for
enableURLHandling
to TypeScript definition (#5803) - Update Flow types (#5806)
[3.8.0] - 2019-04-12
onRefresh
on exported listsFlatList
andSectionList
works as expected now (no need to addrefreshControl
prop explicitly)- On Android, the exported
ScrollView
is now same as the React Native ScrollView (but with scroll-to-top behavior added), whereas on iOS we still use react-native-gesture-handler ScrollView. We can change Android back to react-native-gesture-handler ScrollView when software-mansion/react-native-gesture-handler#560 is resolved. - Look for
scrollResponderScrollTo
function in our ScrollView, in react-native 0.59 the interface appears to have changed for FlatList such that this is needed. (react-navigation-native#20)
- Stack header style improvements for web (react-navigation-stack#104)
[3.7.1] - 2019-04-10
- Update Flow types (#5800 and #5801)
- More open
navigationOptions
types for bottom tab navigator config (#5796) - Fix hit slop for bottom tab bar (react-navigation-tabs#110)
- Add accessibility role and state to bottom bar (react-navigation-tabs#90)
- Hide tab bar when keyboard is shown (react-navigation-tabs#112)
- Specify default values for getAccessibilityX on tabs (react-navigation-tabs##116)
- Add a isFirstRouteInParent method to navigation object (react-navigation-core#51)
[3.6.1] - 2019-04-02
- Move event subscriptions to constructor in
withNavigationFocus
to ensure initialdidFocus
event is received.
[3.6.0] - 2019-03-31
- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps, DrawerLabelProps, ScreenProps and InitialLayout.
- Add
disabled
prop to HeaderBackButton - Add
StackViewTransitionConfigs.NoAnimation
- Add
drawerContainerStyle
to navigator config for drawer navigator
[3.5.1] - 2019-03-19
- Export StackGestureContext and DrawerGestureContext
- Add missing type for withOrientation
- Fix header HeaderBackButton title TypeScript type
[3.5.0] - 2019-03-19
- Fixed types for
BottomTabBar
- export
NavigationContext
type
- Make 'react-native-gesture-handler' a peer dependency rather than a hard dependency
[3.4.1] - 2019-03-16
- Fix missing TypeScript definitions file in release package
[3.4.0] - 2019-03-15
- TypeScript type definition now included in the project.
- Better support for react-native-web in core and stack.
- Default key to null in stack reset action (https://github.com/react-navigation/react-navigation-core/commit/59238160d86284a3353d53af10688fcf3f36004f)
- Fix header back button label and title label scaling. Defaults to false. (https://github.com/react-navigation/react-navigation-stack/commit/c1f1dff465e9eebe274a08e274cf10570045fa23)
- Remove react-lifecycles-compat from @react-navigation/core
- NavigationPlayground uses TypeScript
[3.3.2] - 2019-02-25
- Updated Flow types (https://github.com/react-navigation/react-navigation/commit/d3040e52b39bc8e91ffc1354d9c5f8c096baf597)
[3.3.1] - 2019-02-25
- SafeAreaView bottom inset on iPhone XR and XS fixed. (react-navigation#5625)
[3.3.0] - 2019-02-16
- Pass through
drawerOpenProgress
to drawer content component (react-navigation/drawer#40)
[3.2.3] - 2019-02-09
await
the result ofonTransitionStart
before starting the transition (react-navigation/stack#79)
- Oops, I skipped it. Nothing here.
[3.2.1] - 2019-02-09
- Remove accidental console.log
[3.2.0] - 2019-02-08
- Add support for
backBehavior: history'
andbackBehavior: 'order'
to any navigator based on SwitchRouter (eg: tab navigators). (react-navigation/core#31)
[3.1.5] - 2019-02-06
- Revert "Transparent header measurement fix (react-navigation/stack#71)"
[3.1.4] - 2019-02-05
- Fix references to onGestureFinish in StackViewLayout, should be onGestureEnd
[3.1.3] - 2019-02-04
- Stack navigator properly dismisses and restores keyboard when gesture starts and is cancelled
- Transparent header measurement fix (react-navigation/stack#71)
[3.1.2] - 2019-02-01
- Update flow definition for
withNavigation
andwithNavigationFocus
to supportdefaultProps
- Prevent onRef callback be called twice on withNavigationFocus components (react-navigation/core#30)
- Bump react-navigation-drawer version to improve performance - if you use Expo, you will need expo@^32.0.3 to update!
[3.0.9] - 2018-12-19
- Intermittent flicker when changing tabs while using react-native-screens fixed by not changing opacity (react-navigation/tabs#80)
- Prevent fading the previous screen on push/pop on Android (react-navigation/stack#73)
[3.0.8] - 2018-12-08
- Lock create-react-context to 0.2.2
[3.0.7] - 2018-12-08
- Optimize stack gesture to avoid a setState and reduce unnecessary Animated node creation (react-navigation/stack#70)
[3.0.6] - 2018-12-06
- Fix drawer accessibility label when drawer label is not a string
[3.0.5] - 2018-12-03
- Fix crash in rare case where onNavigationStateChange on container leads to setState and container has screenProps (react-navigation#5301)
- Expose underlaying ScrollView methods to NavigationAwareScrollable (react-navigation/native#8)
[3.0.4] - 2018-11-30
- Lock dependencies to exact versions
- Fix crash when screenInterpolator is null (https://github.com/react-navigation/react-navigation-stack/issues/64)
- Fix renderPager override (react-navigation/tabs#70)
- Accessibility labels on drawer items (react-navigation/drawer#30)
[3.0.3] - 2018-11-30
- Fix bug where if you navigate immediately when the navigator is first mounted the stack could get in an invalid state.
- Transparent stack card factors in header height now, even though you probably won't want to use this.
- Fix bug where shadow was still rendered on transparent stack
- Fix gestureResponseDistance custom values being ignored for modal stack
[3.0.2] - 2018-11-27
- Fix
drawerLockMode
on drawer navigator - Fix RTL support in drawer navigator
[3.0.1] - 2018-11-26
- fix NavigationTestUtils.js deprecated file import.
- Update
getParam
flow typings to checkkey
andfallback
arguments, as well as return the correct type automatically. - Fix regression in backgroundColor on cardStyle for stack navigator.
[3.0.0] - 2018-11-17
- Changes between the latest 2.x release and 3.0.0 are listed on the blog at https://reactnavigation.org/blog/2018/11/17/react-navigation-3.0.html
[Unreleased]: Fixed NavigationStackScreenOptions types by adding headerTitleContainerStyle [Unreleased]: https://github.com/react-navigation/react-navigation/compare/3.10.0...HEAD [3.10.0]: https://github.com/react-navigation/react-navigation/compare/3.10.0...3.9.0 [3.9.0]: https://github.com/react-navigation/react-navigation/compare/3.8.1...3.9.0 [3.8.1]: https://github.com/react-navigation/react-navigation/compare/3.8.0...3.8.1 [3.8.0]: https://github.com/react-navigation/react-navigation/compare/3.7.1...3.8.0 [3.7.1]: https://github.com/react-navigation/react-navigation/compare/3.6.1...3.7.1 [3.6.1]: https://github.com/react-navigation/react-navigation/compare/3.6.0...3.6.1 [3.6.0]: https://github.com/react-navigation/react-navigation/compare/3.5.1...3.6.0 [3.5.1]: https://github.com/react-navigation/react-navigation/compare/3.5.0...3.5.1 [3.5.0]: https://github.com/react-navigation/react-navigation/compare/3.4.1...3.5.0 [3.4.1]: https://github.com/react-navigation/react-navigation/compare/3.4.0...3.4.1 [3.4.0]: https://github.com/react-navigation/react-navigation/compare/3.3.2...3.4.0 [3.3.2]: https://github.com/react-navigation/react-navigation/compare/3.3.1...3.3.2 [3.3.1]: https://github.com/react-navigation/react-navigation/compare/3.3.0...3.3.1 [3.3.0]: https://github.com/react-navigation/react-navigation/compare/3.2.3...3.3.0 [3.2.3]: https://github.com/react-navigation/react-navigation/compare/3.2.1...3.2.3 [3.2.1]: https://github.com/react-navigation/react-navigation/compare/3.2.0...3.2.1 [3.2.0]: https://github.com/react-navigation/react-navigation/compare/3.1.5...3.2.0 [3.1.5]: https://github.com/react-navigation/react-navigation/compare/3.1.4...3.1.5 [3.1.4]: https://github.com/react-navigation/react-navigation/compare/3.1.3...3.1.4 [3.1.3]: https://github.com/react-navigation/react-navigation/compare/3.1.2...3.1.3 [3.1.2]: https://github.com/react-navigation/react-navigation/compare/3.0.9...3.1.2 [3.0.9]: https://github.com/react-navigation/react-navigation/compare/3.0.8...3.0.9 [3.0.8]: https://github.com/react-navigation/react-navigation/compare/3.0.7...3.0.8 [3.0.7]: https://github.com/react-navigation/react-navigation/compare/3.0.6...3.0.7 [3.0.6]: https://github.com/react-navigation/react-navigation/compare/3.0.5...3.0.6 [3.0.5]: https://github.com/react-navigation/react-navigation/compare/3.0.4...3.0.5 [3.0.4]: https://github.com/react-navigation/react-navigation/compare/3.0.3...3.0.4 [3.0.3]: https://github.com/react-navigation/react-navigation/compare/3.0.2...3.0.3 [3.0.2]: https://github.com/react-navigation/react-navigation/compare/3.0.1...3.0.2 [3.0.1]: https://github.com/react-navigation/react-navigation/compare/3.0.0...3.0.1 [3.0.0]: https://github.com/react-navigation/react-navigation/compare/2.x...3.0.0