Commit Graph

139 Commits

Author SHA1 Message Date
Michał Osadnik
8bbddb21bc fix: spring was not triggered sometimes on tap (#67)
Co-Authored-By: Satyajit Sahoo <satyajit.happy@gmail.com>
2019-08-18 23:35:29 +05:30
osdnk
3f64539cee fix: immediate closing drawer of fully opened 2019-08-18 23:35:27 +05:30
satyajit.happy
86bcd24569 refactor: use private keyword for private methods 2019-08-18 23:35:18 +05:30
Chris Heninger
57e0af214a fix: fix "DrawerActions" typo (#65) 2019-08-18 23:35:17 +05:30
Satyajit Sahoo
4bdd06a71a refactor: rewrite drawer layout with reanimated (#60) 2019-08-18 23:35:16 +05:30
Satyajit Sahoo
b7a5feb432 refactor: migrate code to typescript (#59) 2019-08-18 23:35:13 +05:30
Miguel Chateloin
cf54e26d71 Expose drawer container style 2019-08-18 23:35:11 +05:30
Bruno Castro
a59ed91aad feat: Move itemStyle to SafeAreaView (#55)
In order to add a custom style like borderRadius to the drawer item, it's necessary to pass a prop to SafeAreaView. Thus, the inner view
was removed and itemStyle has been moved to SafeAreaView
2019-08-18 23:35:09 +05:30
Rob Goldiez
3695de1302 Pass drawer open progress through as a prop (#40) 2019-08-18 23:35:06 +05:30
Brent Vatne
fc0cdfd064 Update react-navigation/native dependency (#41)
* Update RNGH and remove rn-cli.config.js from example

* Update example
2019-08-18 23:35:03 +05:30
Julian Paas
bbe20dbe52 fix: only pass accessibility label if it is a string. fixes #36 (#38) 2019-08-18 23:35:01 +05:30
Brent Vatne
48d7a8bb06 Fix RTL layout 2019-08-18 23:34:59 +05:30
Brent Vatne
5bd63e2f3e Implement drawerLockMode 2019-08-18 23:34:56 +05:30
Mohammed
aafe764f72 support RTL 2019-08-18 23:34:55 +05:30
akiwarheit
035a059c11 Adding accessibility 2019-08-18 23:34:52 +05:30
Brent Vatne
4c5f6fcff0 Track the settling direction to make better decisions about how to respond to actions 2019-08-18 23:34:51 +05:30
Brent Vatne
ec1f4e28da Close the drawer when you tap on an active item 2019-08-18 23:34:49 +05:30
Brent Vatne
05fafbf65e Add back old drawer behavior with unmountInactiveRoutes config 2019-08-18 23:34:49 +05:30
Brent Vatne
b452c953cb Fix lint and test 2019-08-18 23:34:46 +05:30
Xianglin He
5ce4cb3ae1 added contentContainerStyle. 2019-08-18 23:34:46 +05:30
Brent Vatne
f2eda6ce48 Use react-native-screens and keep inactive screens in memory, like with tabs 2019-08-18 23:34:45 +05:30
Brent Vatne
36893fd572 Default keyboardDismissMode to on-drag for drawer, also make it configurable 2019-08-18 23:34:44 +05:30
Brent Vatne
c8d49948b1 Handle back button properly when the drawer is open 2019-08-18 23:34:42 +05:30
Eric Vicenti
ae4c0b8a35 move to react-nav core and native deps 2019-08-18 23:34:40 +05:30
Brent Vatne
416047c109 Pass through entire drawer config object to router 2019-08-18 23:34:38 +05:30
Brent Vatne
f916b75ece Vendor DrawerLayout, add DrawerGestureContext 2019-08-18 23:34:37 +05:30
Brent Vatne
4128e248d3 Support multiple actions in one tick and fire them in the order that they arrive 2019-08-18 23:34:36 +05:30
Brent Vatne
ebe5fff9ec Pass through minSwipeDistance 2019-08-18 23:34:35 +05:30
Brent Vatne
eef5aafb86 Fix issue from rebase and introduce gesture interaction example 2019-08-18 23:34:34 +05:30
Brent Vatne
c82c8ee34b Fix tests 2019-08-18 23:34:31 +05:30
Brett Higgins
f578b5b418 Use react-native-gesture-handler/DrawerLayout 2019-08-18 23:34:30 +05:30
Sean Morton
1cedbcf3ba Don't use a reset sub-action for drawer items 2019-08-18 23:34:29 +05:30
Brent Vatne
5b34b7221a Add initialRouteParams to drawer 2019-08-18 23:34:27 +05:30
Brent Vatne
ae60faa978 Fix typo, release 0.4.2 2019-08-18 23:34:26 +05:30
Brent Vatne
c09e89a064 Single source of truth for drawer open state: the view 2019-08-18 23:34:24 +05:30
Brent Vatne
3990ea39c5 Fix drawer closing behavior 2019-08-18 23:34:23 +05:30
Brent Vatne
f782b1e722 Fix lint and tests 2019-08-18 23:34:20 +05:30
Brent Vatne
b1020d2186 Stop depending on internal functions in react-navigation 2019-08-18 23:34:19 +05:30
Brent Vatne
ccf76e98cc Use SceneView instead of DrawerScreen directly 2019-08-18 23:34:18 +05:30
Solomon Hawk
e5ae16dbed Fix bug in DrawerView
When attempting to navigate to a drawer item while the drawer's state
is 'opening' or 'closing' results in a state where the underlying navigator's
screen correctly changes but the drawer fails to automatically dismiss itself.

Instead, we should allow the drawer to respond to updates and change it's state
even if it's in the middle of 'opening' or 'closing'.
2019-08-18 23:34:16 +05:30
Brent Vatne
bac2c7b186 Migrate tests to this repo 2019-08-18 23:34:15 +05:30
Brent Vatne
3b454fc19b Initial commit after extracting from react-navigation 2019-08-18 23:34:14 +05:30
Satyajit Sahoo
3497ef71f7 chore: fix release-it config 2019-08-18 23:33:43 +05:30
Satyajit Sahoo
5e4e06335c chore: update build config 2019-08-18 23:33:42 +05:30
Satyajit Sahoo
6a9119bd07 Update README and version 2019-08-18 23:33:28 +05:30
Brent Vatne
2b9d22957d Initial commit 2019-08-18 23:33:28 +05:30
satyajit.happy
f4ac5c3e1a wip 2019-08-18 23:33:00 +05:30
satyajit.happy
e4e009fb33 wip 2019-08-18 23:32:59 +05:30
satyajit.happy
0799b43046 wip 2019-08-18 23:32:59 +05:30
satyajit.happy
80b7f1d102 fix: correctly reset _isTabPress property 2019-08-18 23:32:56 +05:30