Commit Graph

130 Commits

Author SHA1 Message Date
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
satyajit.happy
b56de41653 chore: upgrade react-native-tab-view 2019-08-18 23:32:55 +05:30
satyajit.happy
242625aa29 fix: use the JUMP_TO action for tab change
The index change event fires after swipe animation. If you quickly navigate to a new screen in stack before animation finishes, the index change event will fire after the previous navigation event. By this time, the tab navigator is not focused anymore. Using the JUMP_TO action instead of NAVIGATE avoids this issue.
2019-08-18 23:32:54 +05:30
Frederik Winkelsdorf
4adb3a9223 fix: increase padding for iOS horizontal label alignment (#114)
Fixes #113.

20 looks more natural on iPad
2019-08-18 23:32:53 +05:30
satyajit.happy
3c7918dfbe fix: specify default values for getAccessibilityX
fixes #116
2019-08-18 23:32:51 +05:30
Benoit Dion
8f70ebb0d6 feat: add ability to render label beside the icon (#103) 2019-08-18 23:32:49 +05:30
satyajit.happy
d0e43bd346 chore: improve the examples 2019-08-18 23:32:49 +05:30
Satyajit Sahoo
ccb2d38089 feat: hide tab bar when keyboard is shown (#112)
Closes #16

When the statusbar is not translucent, the view resizes when the keyboard is shown on Android. The tab bar stays above the keyboard. This PR makes the tab bar hide automatically when the keyboard is shown.

The behaviour is enabled by default and can be disabled with `keyboardHidesTabBar: false` in `tabBarOptions`
2019-08-18 23:32:47 +05:30
Kevin Fawcett
73e9b4cb8f feat: add accessibility role and state to bottom bar (#90)
### Motivation

Exposing `accessibilityRole` and `accessibilityStates` through props in the same way as `accessibilityLabel`. This allows screen readers to announce things like: `Selected. Banana. Button.`

Reasonable defaults were provided, however, consumers can provide custom overrides in the cases where the role might be `imagebutton` or the state might be `disabled`.

### Test plan

Select a button with VoiceOver (iOS) or Talkback (Android) enabled. The screen reader should read something like `Selected. <AccessibilityLabel>. Button.` or something slightly different depending on which platform you are on. Buttons that are not focused should not have `Selected` announced.
2019-08-18 23:32:47 +05:30
Vojtech Novak
ce3670b36e fix: fix hit slop for bottom tab bar (#110) 2019-08-18 23:32:46 +05:30