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.
- Warn for more invalid headerStyle properties (padding, top/right/bottom/left, position).
- Fixed missing header shadow on Android.
- NavigationEvents component as a declarative interface for subscribing to navigation focus events.
- Fix stack router child router delegation priority (https://github.com/react-navigation/react-navigation/commit/e8c1833053e37d28f0ce505ff323565abf23b6a2)
- Avoid crash when calling isFocused on old route (https://github.com/react-navigation/react-navigation/commit/0921889f7a3acfc6d6bcc4909d209eeeee985ba7)
- Stack router no longer attempts to parse query params within path handling
- Switch router now has exact same param treatment for URLs as stack router does
- Internally we no longer need to special case PlatformHelpers by platform as react-native-web handles the APIs we mocked out with it now.
- Throw error in development mode when header navigation option is set to a string - a common mistake that would otherwise result in a cryptic error message.
- Throw error in development mode when title is not a string.
- Delegate to child routers for more than just the top screen in the stack.
- Update react-navigation-drawer to 0.4.3 to fix
initialRouteParams
option
- Header no longer sometimes flashes for 1 frame when using
header: null
on initial route of stack with floating header. - Export
createSwitchNavigator
in react-navigation.web.js
setParams
applies to the navigation object it is called on even if that is the navigation object for a navigation view (more details in react-navigation#4497)
- Update react-navigation-drawer to fix regression in toggleDrawer
transitionConfig
in stack navigator no longer passes incorrectfromTransitionProps
when navigating back
- Refactor internals to make it play more nicely with web
const defaultGetStateForAction = SwitchBasedNavigator.router.getStateForAction
no longer throws error.- Updated react-navigation-drawer to 0.4.1 which should fix issues related to automatically closing drawer when changing routes.
- Improved examples