All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
6.0.2 (2022-12-12)
Note: Version bump only for package @react-navigation/example
6.0.1 (2022-12-07)
Note: Version bump only for package @react-navigation/example
- add config to enable redux devtools integration (036eae0) - by @satya164
- adjust index when route names are changed (9bc6913) - by @satya164
- automatically set top inset on Android in native stack (ab93bd7) - by @satya164
- clamp interpolated styles (c8ac148) - by @satya164
- disable screens when mode is modal on older expo versions (fb0775c) - by @satya164
- dispatch pop early when screen is closed with gesture (#336) (9d9bd93), closes #267 - by @satya164
- don't force legacy implementation on chrome debugger (4a5a202) - by @satya164
- don't hide child header automatically in stack (da8581e) - by @satya164
- don't perform side-effects in setState (a62e9e5) - by @satya164
- drop dangerously prefix from getState and getParent (fb12380) - by @satya164
- ensure same @types/react version in repo (#10663) (c9de2c1), closes #10655 - by @kacperkapusciak
- fix building link with useLinkProps (ec813fb) - by @satya164
- fix error with type definitions. closes #8511 (2b55133) - by @satya164
- fix false warning due to change in Object.assign in metro preset (98d6938), closes #8584 - by @satya164
- fix headerTransparent not working outside stack navigator (02ab54e) - by @satya164
- fix incorrect name for headerTransparent (6f24a6d) - by @satya164
- fix incorrect warning for headerTransparent in native-stack (a7180cf), closes #10502 - by @satya164
- fix integration tests (f2cb389) - by @satya164
- fix modal animation not being set properly (8985503) - by @satya164
- fix tab router in example app (79a2b12) - by @satya164
- fix transparent modal when another screen is pushed on top (97efa7b), closes #10298 - by @satya164
- fix type error when passing unannotated navigation ref (5d35bd9) - by @satya164
- fix type signature for setParams (#24) (469800b) - by @satya164
- focus a navigator when you navigate to a screen in it (1cc7728) - by @satya164
- hide header shadow for transparent header (a3b2e29) - by @satya164
- improve when back button is shown in nested native stacks (#10761) (4cfc9ac) - by @satya164
- make native stack background transparent when using transparentModal (cf6687b) - by @satya164
- make rehydration keys stable (98393b6) - by @satya164
- make sure disabling react-native-screens works (95572bd) - by @satya164
- make sure new state events are emitted when new navigators mount (ddcd84c) - by @satya164
- make sure the wildcard pattern catches nested unmatched routes (72d2135) - by @satya164
- make transparent modal work with modal presentation (338e008) - by @satya164
- merge params on navigate in example (0167e79) - by @satya164
- only propagate navigate to children (68ab592) - by @satya164
- properly handle history if drawer is open by default (c24dc92) - by @satya164
- provide initial values for safe area to prevent blank screen (#238) (ee63e7c) - by @satya164
- relatively position float Header if !headerTransparent (#8285) (9ef7119) - by @Ashoat
- render fallback only if linking is enabled. closes #8161 (09cd33d) - by @satya164
- replace deprecated I18nManager.isRTL with 18nManager.getConstants().isRTL (#10547) (cf2aea3) - by @mohammadgharouni
- return onPress instead of onClick for useLinkProps (9b96e46) - by @satya164
- rtl in native app example (d189e1f) - by @osdnk
- screens integration on Android (#294) (de5cc08) - by @osdnk
- set header to translucent when using searchbar or large title (8df0c47) - by @satya164
- set statusbar to translucent on Android (b320b8d) - by @satya164
- show a missing icon symbol instead of empty area in bottom tab bar (e017428) - by @satya164
- show error when beforeRemove is used to prevent action in naive stack (61505bc) - by @satya164
- spread parent params to children in compat navigator (bbfeb86), closes #6785 - by @satya164
- strongly type the
componentprop onRouteConfigComponent(#10519) (8850c51) - by @thomasttvo - update ci image for playwright (afb6df5) - by @satya164
- update screens for native stack (698334b) - by @satya164
- update URL on web when params change. fixes #10046 (6b01b21) - by @satya164
- use safe area context in material bottom tabs (2037779) - by @satya164
- wrap navigators in gesture handler root (699d376) - by @satya164
- wrong setParams type if route does not have params (#10512) (a3a998d) - by @Gustash
- drop mode prop in favor of animationPresentation option (554e440) - by @satya164
- drop support for tabBarVisible option (689e4c4) - by @satya164
- move drawerContentOptions to options (eb65363) - by @satya164
- move headerMode to options (50f50a6) - by @satya164
- simplify props for stack and drawer headers (f21a630) - by @satya164
- add 'transparentModal' presentation to JS stack (c3cfe75) - by @satya164
- add
animationTypeForReplaceoption (#297) (f1e85b0) - by @satya164 - add
screensprop for nested configs (#308) (6990cc4) - by @WoLewicki - add
useLinkBuilderhook to build links (e49eea0) - by @satya164 - add a
beforeRemoveevent (9d321d0) - by @satya164 - add a
navigationKeyprop to Screen and Group (f75ffac) - by @satya164 - add a Background component (727ae2d) - by @satya164
- add a getComponent prop to lazily specify components (74592a4) - by @satya164
- add a hook to update document title (2d86d23) - by @satya164
- add a NavigatorScreenParams type. closes #6931 (c0c7a1f) - by @satya164
- add a new component to group multiple screens with common options (12df3d7) - by @satya164
- add a setOptions method to set screen options (5973985) - by @satya164
- add a slide animation for modals on Android (4b639fb) - by @satya164
- add a tabBarBackground option to bottom tabs (608d7c5) - by @satya164
- add a useFocusEffect hook (62218ea) - by @satya164
- add a useLinkProps hook (ef4776d) - by @satya164
- add ability to specify root param list (d0bff2d) - by @satya164
- add action prop to Link (7d51b9e) - by @satya164
- add an ID prop to navigators (5949831) - by @satya164
- add an isFirstRouteInParent method (7d1070a) - by @satya164
- add backBehavior to TabRouter (52777c6) - by @satya164
- add basic deep linking example (752c126) - by @satya164
- add basic nesting example (07fd3e4) - by @satya164
- add custom theme support (#211) (a83f6e0) - by @satya164
- add customAnimationOnGesture & fullScreenSwipeEnabled props to native-stack (#10321) (e114cba) - by @kacperkapusciak
- add deeplinking to native example (#309) (b4178f0) - by @osdnk
- add devtools package (#8436) (02c3e2c) - by @satya164
- add headerStatusBarHeight option to stack (4022a4e) - by @satya164
- add helper and hook for container ref (15caa56) - by @satya164
- add helper to get focused route name from nested state (#8435) (6f2b9c6) - by @satya164
- add Link component as useLinkTo hook for navigating to links (1d6773c) - by @satya164
- add more acttions (7e05004) - by @satya164
- add openByDefault option to drawer (e9740c3) - by @satya164
- add option to show a header in drawer navigator screens (ea0adc4) - by @satya164
- add permanent drawer type (#7818) (09fa393) - by @satya164
- add preventDefault functionality in material bottom tabs (db67b7d) - by @satya164
- add search bar to native-stack on Android (9b94f2c) - by @ChrisEdson
- add support for badges to bottom tab bar (4d40daf) - by @satya164
- add support for params (6b83581) - by @satya164
- add target argument to setParams (#18) (0c9618f) - by @osdnk
- add typed navigator for better typechecking (c1e14de) - by @satya164
- add wildcard patterns for paths (0a58014), closes #8019 - by @satya164
- associate path with the route it opens when deep linking (#9384) (cc8bb8c), closes #9102 - by @satya164
- automatically hide header in nested stacks (ad5048d) - by @satya164
- automatically set headerMode if it's modal presentation style (c9a683c) - by @satya164
- emit appear and dismiss events for native stack (c8e1d74) - by @satya164
- expose animationEnabled in material top tabs (c0130ff) - by @satya164
- handle route names change (66c7131) - by @satya164
- implement usePreventRemove hook (#10682) (501b9e6) - by @kacperkapusciak
- improve types for options and support a function (8473db5) - by @satya164
- initial implementation of a flipper plugin (2cdb1f4) - by @satya164
- initialState should take priority over deep link (bdf5e11) - by @satya164
- integrate with history API on web (998dc97) - by @satya164
- let child navigators handle actions from parent (21f7a9e) - by @osdnk
- make actions work across navigators (83c8d5a) - by @satya164
- make NAVIGATE and JUMP_TO to support key and name of the route (#16) (0150c60) - by @osdnk
- native-stack: add support for header background image (bc174a8) - by @
- respect key when reseting state (d2c658e) - by @satya164
- rework linking configuration to be more strict (#8502) (5ce7554) - by @satya164
- support mixing regular and modal presentation in same stack (af9f1db) - by @satya164
- support navigate-like object in Link (3cf4e3d) - by @satya164
- support options (ebf811c) - by @satya164
- update react-native-safe-area-context to 1.0.0 (#8182) (2a6667f) - by @janicduplessis
- upgrade to latest react-native-tab-view using ViewPager (75ac824) - by @satya164
- use modal presentation style for modals on iOS by default (f1ad641) - by @satya164
- This drops the mode prop on the navigator in favor of a per-screen option animationPresentation
- headerMode is now moved to options instead of props
- This commit moves options from
drawerContentOptionsto regularoptionsin order to reduce confusion between the two, as well as to make it more flexible to configure the drawer on a per screen basis. - We need to add support for specifying style for tab bar in options to support the use cases which need this.
- Previously, the stack header accepted scene and previous scene which contained things such as descriptor, navigation prop, progress etc. The commit simplifies them to pass
route,navigation,optionsandprogressdirectly to the header. Similaryly, thepreviousargument now containsoptions,routeandprogress.
5.1.0 (2020-05-20)
- add config to enable redux devtools integration (c9c825b)
- clamp interpolated styles (67798af)
- disable screens when mode is modal on older expo versions (94d7b28)
- dispatch pop early when screen is closed with gesture (#336) (3d937d1), closes #267
- provide initial values for safe area to prevent blank screen (#238) (77b7570)
- render fallback only if linking is enabled. closes #8161 (1c075ff)
- return onPress instead of onClick for useLinkProps (ae5442e)
- rtl in native app example (50b366e)
- screens integration on Android (#294) (9bfb295)
- spread parent params to children in compat navigator (24febf6), closes #6785
- update screens for native stack (5411816)
- wrap navigators in gesture handler root (41a5e1a)
- add
animationTypeForReplaceoption (#297) (6262f72) - add
screensprop for nested configs (#308) (b931ae6) - add
useLinkBuilderhook to build links (2792f43) - add a useLinkProps hook (f2291d1)
- add action prop to Link (942d2be)
- add custom theme support (#211) (00fc616)
- add deeplinking to native example (#309) (e55e866)
- add headerStatusBarHeight option to stack (b201fd2)
- add Link component as useLinkTo hook for navigating to links (2573b5b)
- add openByDefault option to drawer (36689e2)
- add permanent drawer type (#7818) (6a5d0a0)
- add preventDefault functionality in material bottom tabs (3dede31)
- emit appear and dismiss events for native stack (f1df4a0)
- initialState should take priority over deep link (039017b)
- integrate with history API on web (5a3f835)