All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
7.0.0-alpha.2 (2023-06-22)
Note: Version bump only for package @react-navigation/drawer
7.0.0-alpha.1 (2023-03-01)
- fix paths in sourcemap files (368e069) - by @satya164
- add ability to customize the fonts with the theme (#11243) (1cd6836) - by @satya164
- add gesture and transition events to drawer (#11240) (50b94e4) - by @BeeMargarida
7.0.0-alpha.0 (2023-02-17)
- added close drawer accessibility tap area (#11184) (20ec204) - by @mikegarfinkle
- drawerstatuscontext should be exported (#11041) (6e4cb06) - by @leonchabbey
- fix overlay not receiving clicks on web (666c8db) - by @satya164
-
drop react-native-flipper-plugin (643b8e8), closes /github.com/react-native-community/discussions-and-proposals/discussions/546#discussioncomment-4178951 - by @satya164
-
refactor!: improve the API for Link component (7f35837) - by @satya164
- add testID and accessibilityLabel to DrawerItem (#11168) (4471fa0) - by @andrewtremblay
- extract drawer to a separate package (58b7cae) - by @satya164
- Initially the
Link
component was designed to work with path strings via theto
prop. But it has few issues:
- The path strings are not type-safe, making it easy to cause typos and bugs after refactor
- The API made navigating via screen name more incovenient, even if that's the preferred approach
This revamps the API of the Link
component to make it easier to use. Instead of to
prop, it now accepts screen
and params
props, as well as an optional href
prop to
use instead of the generated path.
e.g.:
<Link screen="Details" params={{ foo: 42 }}>Go to Details</Link>
This also drops the useLinkTo
hook and consolidates into the useLinkTools
hook - which lets us build a href
for a screen or action for a path.
- React Native team is focusing on migrating away from Flipper. So it doesn't make much sense for us to spend additional resources to support the Flipper plugin.
6.5.1 (2022-11-21)
- add accessibility props to NativeStack screens (#11022) (3ab05af)
- only call onGestureStart when criteria met in drawer (#10929) (9041069)
6.5.0 (2022-09-16)
- add helpful error when using legacy implementation with Reanimated v3 (#10693) (d19987b)
- export
PanGestureHandlerGestureEvent
as a type (#10814) (f3d06ba) - fix isRTL check in drawer (2d2f4e3)
- replace deprecated I18nManager.isRTL with 18nManager.getConstants().isRTL (#10547) (50b88d4)
6.4.4 (2022-08-24)
- add helpful error when using legacy implementation with Reanimated v3 (#10693) (d19987b)
- fix isRTL check in drawer (2d2f4e3)
- replace deprecated I18nManager.isRTL with 18nManager.getConstants().isRTL (#10547) (50b88d4)
6.4.3 (2022-07-05)
6.4.2 (2022-06-23)
6.4.1 (2022-04-01)
Note: Version bump only for package @react-navigation/drawer
6.4.0 (2022-04-01)
- add an ID prop to navigators (4e4935a)
6.3.3 (2022-03-26)
6.3.2 (2022-03-25)
- don't force legacy implementation on chrome debugger (94730e0)
- fix drawer in RTL and when on right. fixes #10335 (a3fad5b)
- remove unsupported option from types (08c61ad)
6.3.1 (2022-02-07)
- fix checking whether reanimated 2 is configured (ba868fc)
6.3.0 (2022-02-02)
- drawer: fix drawer when changing
drawerType
(ex: front -> permanent) (#10304) (6f7c287), closes #10305
- add drawerAllowFontScaling prop to drawer package (#10041) (bd7786e)
- add prop for new container (#9772) (3fb2140)
- add the 'drawerPress' event (#9529) (0c86f76)
6.2.0 (2022-01-29)
- fix drawer disappearing on web when switching drawerType (5246574), closes #10210
- fix useDrawerStatus typings (#10163) (a11ada8), closes #10066
6.1.8 (2021-10-12)
- add some a11y props to drawer overlay (5f94c1d)
- don't make the overlay touchable if drawer isn't open (7c99b9d)
- move @ts-expect-error to body to avoid issue in type definitions (0a08688)
6.1.7 (2021-10-09)
- properly handle history if drawer is open by default (de2d4e4)
6.1.6 (2021-09-26)
Note: Version bump only for package @react-navigation/drawer
6.1.5 (2021-09-26)
- export header props for other navigators (8475481), closes #9965
- in cases where the drawer type is set to be permanent, do not apply any transformations (2a88d0d)
6.1.4 (2021-08-17)
Note: Version bump only for package @react-navigation/drawer
6.1.3 (2021-08-11)
- use correct tint and background color from drawer items (f8fddac)
6.1.2 (2021-08-11)
- fix headerTransparent not working outside stack navigator (42c43ff)
6.1.1 (2021-08-09)
Note: Version bump only for package @react-navigation/drawer
6.1.0 (2021-08-07)
6.0.1 (2021-08-03)
6.0.0 (2021-08-01)
- add deprecation warning for openByDefault (9506ad1)
6.0.0-next.21 (2021-07-16)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.20 (2021-07-16)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.19 (2021-07-01)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.18 (2021-06-10)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.17 (2021-06-01)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.16 (2021-05-29)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.15 (2021-05-29)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.14 (2021-05-27)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.13 (2021-05-26)
- add screenListeners prop on navigators similar to screenOptions (cde44a5)
6.0.0-next.12 (2021-05-25)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.11 (2021-05-23)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.10 (2021-05-16)
- fix drawer content padding in RTL (ea8ea20)
6.0.0-next.9 (2021-05-10)
- add a deprecation warning for mode prop in stack (a6e4981)
- return a NavigationContent component from useNavigationBuilder (1179d56)
6.0.0-next.8 (2021-05-09)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.7 (2021-05-09)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.6 (2021-05-09)
- enable screens only on supported platforms (#9494) (8da4c58)
- make sure disabling react-native-screens works (a369ba3)
6.0.0-next.5 (2021-05-01)
Note: Version bump only for package @react-navigation/drawer
6.0.0-next.4 (2021-04-08)
- don't handle back button with permanent drawer (b893968)
- fix drawer overlay on web (3241190)
- only handle back button in drawer when focused (5ae0bad)
6.0.0-next.3 (2021-03-22)
- add a Background component (cbaabc1)
6.0.0-next.2 (2021-03-12)
- export drawer button (2c8401d)
6.0.0-next.1 (2021-03-10)
- fix peer dep versions (72f90b5)
6.0.0-next.0 (2021-03-09)
- add missing helper types in descriptors (21a1154)
- drop usage of Dimensions in favor of metrics from safe-area-context (12b893d)
- enable detachInactiveScreens by default on web for better a11y (4954d6a)
- fix drawer and bottom tabs not being visible on web. closes #9225 (b735de1)
- fix drawer screen content not being interactable on Android (865d8b3)
- fix initial metrics on server (69d333f)
- fix pointerEvents in ResourceSavingScene (af53dd6), closes #9241 #9242
- fix typo for default prop in drawer (b376e9c)
- don't use a boolean for drawer status (cda6397)
- don't use absolute position for header (79a85a4)
- don't use deprecated APIs from react-native-safe-area-context (ddf27bf)
- drop drawerOpen and drawerClose events (5648e1a)
- move drawerContentOptions to options (15e5678)
- simplify props for stack and drawer headers (4cad132)
- add pressColor and pressOpacity props to drawerItem (#8834) (52dbe4b)
- initial implementation of @react-navigation/elements (07ba7a9)
- move lazy to options for bottom-tabs and drawer (068a9a4)
- Drawer status is now a union ('open', 'closed') instead of a boolean. This will let us implement more types of status in future.
Following this the following exports have been renamed as well:
- getIsDrawerOpenFromState -> getDrawerStatusFromState
- useIsDrawerOpen -> useDrawerStatus
- We now use flexbox for header elements which could break some existing style code which relied on absolute positioning.
- The lazy prop now can be configured per screen instead of for the whole navigator. To keep previous behavior, you can specify it in screenOptions
- This commit moves options from
drawerContentOptions
to regularoptions
in 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 now require newer versions of safe area context library.
- drawer's status can be queried through the isDrawerOpen hook. no need for the events
- 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
,options
andprogress
directly to the header. Similaryly, theprevious
argument now containsoptions
,route
andprogress
.
5.11.2 (2020-11-10)
Note: Version bump only for package @react-navigation/drawer
5.11.1 (2020-11-09)
- provide correct context to drawe header (18bbd17)
5.11.0 (2020-11-09)
- try fixing drawer blink on Android (5217245)
- add a getIsDrawerOpenFromState utility to drawer (5bd682f)
- add option to show a header in drawer navigator screens (dbe961b)
5.10.7 (2020-11-08)
Note: Version bump only for package @react-navigation/drawer
5.10.6 (2020-11-04)
Note: Version bump only for package @react-navigation/drawer
5.10.5 (2020-11-04)
Note: Version bump only for package @react-navigation/drawer
5.10.4 (2020-11-03)
Note: Version bump only for package @react-navigation/drawer
5.10.3 (2020-11-03)
Note: Version bump only for package @react-navigation/drawer
5.10.2 (2020-10-30)
Note: Version bump only for package @react-navigation/drawer
5.10.1 (2020-10-28)
Note: Version bump only for package @react-navigation/drawer
5.10.0 (2020-10-24)
- add optional screens per navigator (#8805) (7196889)
- improve types for navigation state (#8980) (7dc2f58)
- update helper types to have navigator specific methods (f51086e)
5.9.3 (2020-10-07)
- use route keys instead of index for lazy load (c49dab3)
5.9.2 (2020-09-28)
Note: Version bump only for package @react-navigation/drawer
5.9.1 (2020-09-22)
- add flex: 1 to DrawerItem style (#8701) (1c4bd68), closes /github.com/react-navigation/react-navigation/blob/main/packages/drawer/src/views/DrawerItem.tsx#L167
- cleanly removing event listeners in useWindowDimensions (#8866) (dcbfe52)
5.9.0 (2020-08-04)
- fix TouchableItem opacity on press on iOS (40e2dba)
5.8.7 (2020-07-28)
5.8.6 (2020-07-19)
Note: Version bump only for package @react-navigation/drawer
5.8.5 (2020-07-10)
Note: Version bump only for package @react-navigation/drawer
5.8.4 (2020-06-25)
Note: Version bump only for package @react-navigation/drawer
5.8.3 (2020-06-24)
- make sure we don't miss dimensions updates (c65f9ef)
- use interpolateNode in drawer to support Reanimated 2 (ea5affd)
5.8.2 (2020-06-06)
5.8.1 (2020-05-27)
Note: Version bump only for package @react-navigation/drawer
5.8.0 (2020-05-23)
5.7.7 (2020-05-20)
Note: Version bump only for package @react-navigation/drawer
5.7.6 (2020-05-20)
Note: Version bump only for package @react-navigation/drawer
5.7.5 (2020-05-16)
Note: Version bump only for package @react-navigation/drawer
5.7.4 (2020-05-14)
Note: Version bump only for package @react-navigation/drawer
5.7.3 (2020-05-14)
Note: Version bump only for package @react-navigation/drawer
5.7.2 (2020-05-10)
Note: Version bump only for package @react-navigation/drawer
5.7.1 (2020-05-08)
5.7.0 (2020-05-08)
5.6.4 (2020-05-05)
Note: Version bump only for package @react-navigation/drawer
5.6.3 (2020-05-01)
Note: Version bump only for package @react-navigation/drawer
5.6.2 (2020-05-01)
Note: Version bump only for package @react-navigation/drawer
5.6.1 (2020-04-30)
Note: Version bump only for package @react-navigation/drawer
5.6.0 (2020-04-30)
- fix closing drawer on web with tap on overlay (70be3f6)
- make sure the address bar hides when scrolling on web (0a19e94)
5.5.1 (2020-04-27)
Note: Version bump only for package @react-navigation/drawer
5.5.0 (2020-04-17)
- add openByDefault option to drawer (36689e2)
5.4.1 (2020-04-08)
- don't hide content from accessibility with permanent drawer (cb2f157), closes #7976
- mark type exports for all packages (b71de6c)
5.4.0 (2020-03-30)
- disable only swipe gesture on safari (105da6a)
5.3.4 (2020-03-23)
Note: Version bump only for package @react-navigation/drawer
5.3.3 (2020-03-22)
Note: Version bump only for package @react-navigation/drawer
5.3.2 (2020-03-19)
- close drawer on pressing Esc on web (5c4afc5), closes #6745
- don't use react-native-screens on web (b1a65fc), closes #7485
- fix permanent sidebar position (#7830) (3ea8eec)
- initialize height and width to zero if undefined (3df65e2), closes #6789
5.3.1 (2020-03-17)
Note: Version bump only for package @react-navigation/drawer
5.3.0 (2020-03-17)
5.2.0 (2020-03-16)
5.1.1 (2020-03-03)
Note: Version bump only for package @react-navigation/drawer
5.1.0 (2020-02-26)
5.0.7 (2020-02-21)
Note: Version bump only for package @react-navigation/drawer
5.0.6 (2020-02-19)
- delay showing drawer by one frame after layout (e0c3298)
5.0.5 (2020-02-14)
Note: Version bump only for package @react-navigation/drawer
5.0.4 (2020-02-14)
Note: Version bump only for package @react-navigation/drawer
5.0.3 (2020-02-12)
Note: Version bump only for package @react-navigation/drawer
5.0.2 (2020-02-11)
5.0.1 (2020-02-10)
5.0.0-alpha.47 (2020-02-04)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.46 (2020-02-04)
5.0.0-alpha.45 (2020-02-03)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.44 (2020-02-02)
- add licenses (0c159db)
- fix drawerType=back when drawer is on right (9198597), closes #316
- handle back button in drawer itself (0e8fda3)
- screens integration on Android (#294) (9bfb295)
- update screens for native stack (5411816)
- wrap navigators in gesture handler root (41a5e1a)
5.0.0-alpha.42 (2020-02-02)
- add licenses (0c159db)
- fix drawerType=back when drawer is on right (9198597), closes #316
- handle back button in drawer itself (0e8fda3)
- screens integration on Android (#294) (9bfb295)
- update screens for native stack (5411816)
5.0.0-alpha.41 (2020-01-24)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.40 (2020-01-23)
- emit appear and dismiss events for native stack (f1df4a0)
- let the navigator specify if default can be prevented (da67e13)
5.0.0-alpha.39 (2020-01-14)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.38 (2020-01-13)
5.0.0-alpha.37 (2020-01-13)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.36 (2020-01-09)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.35 (2020-01-09)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.34 (2020-01-05)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.33 (2020-01-03)
5.0.0-alpha.32 (2020-01-03)
5.0.0-alpha.31 (2020-01-01)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.30 (2019-12-19)
- set screen background in drawer from theme (0635365)
5.0.0-alpha.29 (2019-12-16)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.28 (2019-12-14)
5.0.0-alpha.27 (2019-12-11)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.26 (2019-12-10)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.25 (2019-12-07)
5.0.0-alpha.24 (2019-11-27)
5.0.0-alpha.23 (2019-11-17)
- pass labelStyle prop in DrawerItem label (#170) (cd7c9c4)
- workaround SafereaProvider causing jumping (c17ad18), closes #174
5.0.0-alpha.22 (2019-11-10)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.21 (2019-11-08)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.20 (2019-11-04)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.19 (2019-11-02)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.18 (2019-10-30)
- add an 'unmountInactiveScreens' option (12d597f)
5.0.0-alpha.17 (2019-10-29)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.16 (2019-10-22)
- navigation drawer sometimes not closing when pressed outside (0d8cdc8)
5.0.0-alpha.15 (2019-10-17)
- fix passing content options in drawer (cab6160)
5.0.0-alpha.14 (2019-10-15)
5.0.0-alpha.13 (2019-10-06)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.12 (2019-10-03)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.11 (2019-10-03)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.10 (2019-09-27)
- export some more type aliases (8b78d61)
5.0.0-alpha.9 (2019-09-16)
5.0.0-alpha.8 (2019-08-31)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.7 (2019-08-30)
- rename contentContainerStyle to sceneContainerStyle for drawer (fdc24d2)
5.0.0-alpha.6 (2019-08-29)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.5 (2019-08-28)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.4 (2019-08-27)
Note: Version bump only for package @react-navigation/drawer
5.0.0-alpha.3 (2019-08-22)
- fix path to typescript definitions (f182315)
5.0.0-alpha.2 (2019-08-22)
Note: Version bump only for package @react-navigation/drawer
- fix "DrawerActions" typo (#65) (57e0af2)
- fix peer deps and add git urls (6b4fc74)
- get rid of random red screen on iOS on opening drawer (#68) (3c4f10d)
- immediate closing drawer of fully opened (3f64539)
- only pass accessibility label if it is a string. fixes #36 (#38) (bbe20db)
- reset this.gestureX on manual setting (2a1620d)
- rewrite tap callbacks to native calls (d4c51f4)
- spring was not triggered sometimes on tap (#67) (8bbddb2)
- tweak spring config for animation (7946b9d)