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.
- Move event subscriptions to constructor in
withNavigationFocus
to ensure initialdidFocus
event is received.
- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps, DrawerLabelProps, ScreenProps and InitialLayout.
- Add
disabled
prop to HeaderBackButton - Add
StackViewTransitionConfigs.NoAnimation
- Add
drawerContainerStyle
to navigator config for drawer navigator
- Export StackGestureContext and DrawerGestureContext
- Add missing type for withOrientation
- Fix header HeaderBackButton title TypeScript type
- Fixed types for
BottomTabBar
- export
NavigationContext
type
- Make 'react-native-gesture-handler' a peer dependency rather than a hard dependency
- Fix missing TypeScript definitions file in release package
- 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
- Updated Flow types (https://github.com/react-navigation/react-navigation/commit/d3040e52b39bc8e91ffc1354d9c5f8c096baf597)
- SafeAreaView bottom inset on iPhone XR and XS fixed. (react-navigation#5625)
- Pass through
drawerOpenProgress
to drawer content component (react-navigation/drawer#40)
await
the result ofonTransitionStart
before starting the transition (react-navigation/stack#79)
- Oops, I skipped it. Nothing here.
- Remove accidental console.log
- Add support for
backBehavior: history'
andbackBehavior: 'order'
to any navigator based on SwitchRouter (eg: tab navigators). (react-navigation/core#31)
- Revert "Transparent header measurement fix (react-navigation/stack#71)"
- Fix references to onGestureFinish in StackViewLayout, should be onGestureEnd
- Stack navigator properly dismisses and restores keyboard when gesture starts and is cancelled
- Transparent header measurement fix (react-navigation/stack#71)
- 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!
- 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)
- Lock create-react-context to 0.2.2
- Optimize stack gesture to avoid a setState and reduce unnecessary Animated node creation (react-navigation/stack#70)
- Fix drawer accessibility label when drawer label is not a string
- 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)
- 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)
- 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
- Fix
drawerLockMode
on drawer navigator - Fix RTL support in drawer navigator
- 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.
- 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