Skip to content

Latest commit

 

History

History
250 lines (182 loc) · 14.8 KB

CHANGELOG.md

File metadata and controls

250 lines (182 loc) · 14.8 KB

Changelog

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.

Changed

  • Add dangerouslyGetParent() to flow typings
  • Update react-navigation-stack to 0.7.0
    • Add transparentCard option to fix cards with a transparent bg when using rn-screens
    • Add window dimensions for iPhone XS Max and iPhone XR
    • Vendor clamp
    • Add overflow hidden to stack container
    • Completion on mount: StackView is responsible for calling the navigation completion action when state.isTransitioning is set. This fix handles that case when the stack is first mounting.

Changed

  • Updated react-navigation-stack to 0.6.0 to make react-native-screens a peerDependency.
  • Updated react-navigation-tabs to 0.8.2 to make react-native-screens a peerDependency and add support for it in bottom tab navigator.
  • Make react-native-screens a direct dependency of react-navigation.

Changed

  • Updated react-navigation-safe-area-view to 0.11.0 to support iPhoneXS Max and iPhoneXR.

Changed

  • Updated react-navigation-stack to 0.5.1 to clamp interpolated values in animations.

Changed

  • Updated react-navigation-stack to 0.5.0 to solve black screen on back and unpressable header area with hidden header when using react-native-screens.

Added

Changed

  • Updated react-native-safe-area-view to 0.10.0 to solve circular dependency issue (fixes react-navigation#4973)

Added

  • When tabBarIcon is a function it is now provided with a horizontal option that indicates whether horizontal tabs are being rendered (label to the right of the icon) or not.
  • Add some missing flow types (1, 2).

Changed

  • Updated react-navigation-stack to 0.3.0.
  • Updated react-navigation-tabs to 0.7.0.
  • Pinned create-react-context dependency to 0.2.2 (react-navigation#4934)

Fixed

  • Fixes tab label font sizes in landscape and portrait.
  • Default tab bar background color and header background color are white on iOS.

Fixed

Changed

Changed

  • Revert rename of pathUtils

Changed

  • Fix some exports related to the 2.11.0 changes to move stack navigator out of core

Added

  • Export some modules that are useful for moving stack navigator outside of core

Added

  • lazy and optimizationsEnabled options to createMaterialTopTabNavigator ([email protected])

Fixed

  • Android back button in stack with drawer closes drawer properly if open ([email protected])
  • Fixes bug where null doesn't work in routerOptions paths object for deeplinking (#4791)

Added

  • Add NavigationTestUtils which can be imported by path to be used with jest snapshot testing.

Added

  • Export StackViewTransitionConfigs to allow you to extend default config in custom transition configs. #4761

Fixed

  • Error when building with haul: ref to pathToRegexp.compile. #4658.

Fixed

  • Incorrect parameters passed to title offset calculation led to bug in header layout when no right component (react-navigation#4754)

Fixed

  • Typo in Header transition preset check.

Added

  • headerLayoutPreset: 'center' | 'left' to provide an easy solution for questions like this.
  • headerBackTitleEnabled - this configuration option for stack navigator allows you to force back button titles to either be rendered or not (if you disagree with defaults for your platform and layout preset).

Fixed

  • Android back button ripple is now appropriately sized (fixes #3955).
  • Respect header background color on container (fixes edge case where user depended on displaying content that was rendered behind the navigator, this particular behavior should not be depended on and may break in the future, but this change is still useful regardless).

Added

  • headerLeftContainerStyle, headerTitleContainerStyle, and headerRightContainerStyle are exposed on navigationOptions. These properties allow you to customize the style of the container of headerLeft, headerTitle and headerRight components.

Fixed

Added

  • The enableURLHandling prop on the top level navigator component allows you to disable deep linking handling. Currently it is always enabled. To disable it, <RootNavigator enableURLHandling={false} />

Changed

  • StackNavigator.replace method no longer requires a key param. If the key is left undefined, the last screen in the stack will be replaced.

Fixed

  • Support headerLeft component for the first screen in a stack (#4608).
  • Removed bottomBorder when headerTransparent is set to true.
  • Improve empty path and param handling in deep linking (#4671). This fixes issues with deep linking and fully tests the differences between path: '' and path: null. Empty string matches empty paths, and null path will let the child router handle paths at the same level. Also it makes sure that params are not duplicated between path and query when they are serialized with getPathAndParamsForState.
  • Fix onTransitionStart not being invoked when provided in navigator config.(#4100)
  • Rare case when users navigated back and forth quickly with exactly the right timing would cause a crash due to a scene being queued to transition, then clobbered, then attempted to render as a stale scene but without a descriptor. (commit)

Changed

  • Relax vertical padding warnings on header.

Added

  • Warn for more invalid headerStyle properties (padding, top/right/bottom/left, position).

Fixed

  • Fixed missing header shadow on Android.

Added

  • NavigationEvents component as a declarative interface for subscribing to navigation focus events.

Fixed

Changed

  • Internally we no longer need to special case PlatformHelpers by platform as react-native-web handles the APIs we mocked out with it now.

Added

  • 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.

Fixed

  • 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

Fixed

  • 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

Fixed

  • 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)

Fixed

  • Update react-navigation-drawer to fix regression in toggleDrawer

Fixed

  • transitionConfig in stack navigator no longer passes incorrect fromTransitionProps when navigating back

Changed

  • Refactor internals to make it play more nicely with web

Fixed

  • 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.

Changed

  • Improved examples