Satyajit Sahoo
3bec1c964a
fix: remove isTransitioning from SwitchRouter state
2020-03-31 17:38:42 +02:00
Satyajit Sahoo
44c390075f
fix: don't use react-native-screens on web
...
seems `react-native-screens` doesn't handle active screens properly and shows a blank page
instead on web when a number is specified in the `active` prop.
closes #7485
2020-03-19 16:43:28 +01:00
Satyajit Sahoo
72e8160537
chore: migrate to monorepo
2020-02-24 17:27:10 +01:00
Satyajit Sahoo
d39b29925a
fix: don't disable programmatic open/close of drawer with drawerLockMode
...
fixes #56
2020-02-06 23:48:55 +01:00
flyingcircle
71df6f36f5
fix: hide content while drawer is open from talkback ( #132 )
2019-10-30 00:59:18 -07:00
Bryan Kok
f92d3ed4a8
fix: change type of the navigation field in DrawerContentComponentProps ( #121 )
2019-10-29 00:46:46 +08:00
Bryan Kok
2bc25b6771
fix: export DrawerLockMode, DrawerIconProps, and DrawerLabelProps
2019-10-29 00:46:00 +08:00
nvojnovic
ff9dd732ad
fix: navigation drawer sometimes not closing when pressed outside ( #126 )
...
I noticed this issue only on android devices.
After many rewrites of this component I ended up with this simple change and now drawer is closing properly every time.
Most important part is to set new state inside function with
state: (s: Animated.Value<number>) => set(this.gestureState, s)
because I was also experiencing some issues when setting it like this
state: this.gestureState
2019-10-21 10:08:36 +02:00
satyajit.happy
cbc09c2351
fix: expose DrawerItems to maintain backward compat
2019-10-21 03:14:07 +02:00
Aravind Reddy
ffbc1f5115
feat(drawer): expose draweropenprogress via react-contextapi ( #125 )
2019-10-21 06:29:22 +05:30
SaeedZhiany
395bb31a40
fix: add screenProps to DrawerNavigatorItemsProps ( #100 )
2019-09-30 18:23:30 +03:30
satyajit.happy
26cd8511b5
fix: set proper type for screenProps in ScreenComponent
2019-09-22 00:47:33 +02:00
satyajit.happy
c8fa94e15d
feat: export types for ScreenProps amd ScreenComponent
2019-09-12 20:05:52 +02:00
Satyajit Sahoo
da51cedff4
fix: fix typescript definitions ( #95 )
2019-09-11 17:01:30 +02:00
satyajit.happy
79fb9efd46
fix: add peer dep on react-navigation
2019-09-09 22:21:27 +02:00
Brent Vatne
1e8279ae18
feat: add theme support
2019-09-04 16:08:51 -07:00
satyajit.happy
9900a5c7ae
fix: rename contentContainerStyle to sceneContainerStyle
2019-08-31 11:54:50 +02:00
osdnk
2c5b98bacb
feat: add custom GH props
2019-06-12 18:01:17 +02:00
satyajit.happy
bdebebb938
fix: tweak spring config for animation
2019-05-14 16:49:56 +02:00
osdnk
7a940b216a
fix: reset this.gestureX on manual setting
2019-05-13 19:39:04 +02:00
osdnk
5c71dffc2c
fix: rewrite tap callbacks to native calls
2019-05-13 19:06:41 +02:00
Michał Osadnik
e15ba96fb9
fix: get rid of random red screen on iOS on opening drawer ( #68 )
2019-05-13 18:30:03 +02:00
Michał Osadnik
be17729df6
fix: spring was not triggered sometimes on tap ( #67 )
...
Co-Authored-By: Satyajit Sahoo <satyajit.happy@gmail.com >
2019-05-13 16:46:47 +02:00
osdnk
6225151dbe
fix: immediate closing drawer of fully opened
2019-05-12 23:17:12 +02:00
satyajit.happy
d4edf2e1dd
refactor: use private keyword for private methods
2019-05-02 12:25:20 +02:00
Chris Heninger
be85845a5a
fix: fix "DrawerActions" typo ( #65 )
2019-05-01 15:41:53 -07:00
Satyajit Sahoo
f4fada9041
refactor: rewrite drawer layout with reanimated ( #60 )
2019-05-01 23:58:06 +02:00
Satyajit Sahoo
9b04e45542
refactor: migrate code to typescript ( #59 )
2019-04-12 16:06:57 +02:00
Miguel Chateloin
bac57afdc6
Expose drawer container style
2018-12-10 15:47:22 -06:00
Bruno Castro
41a8f5366a
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-03-08 16:06:06 -03:00
Rob Goldiez
73f3d653bf
Pass drawer open progress through as a prop ( #40 )
2019-02-16 11:41:18 -06:00
Brent Vatne
209bdb46a8
Update react-navigation/native dependency ( #41 )
...
* Update RNGH and remove rn-cli.config.js from example
* Update example
2019-01-09 11:43:16 -08:00
Julian Paas
479f7b1579
fix: only pass accessibility label if it is a string. fixes #36 ( #38 )
2018-12-04 11:40:34 -05:00
Brent Vatne
c62eef3ea9
Merge pull request #30 from akiwarheit/master
...
Adding accessibility
2018-11-30 12:53:03 -08:00
Brent Vatne
710cd28790
Fix RTL layout
2018-11-27 13:57:12 -08:00
Brent Vatne
9e79ed7662
Merge pull request #35 from mhdnet/patch-1
...
support RTL
2018-11-27 13:49:00 -08:00
Brent Vatne
00380f1ce3
Implement drawerLockMode
2018-11-27 13:35:58 -08:00
Brent Vatne
ab114aeb3c
Track the settling direction to make better decisions about how to respond to actions
2018-10-31 18:15:56 -07:00
Brent Vatne
a8e82bff9c
Close the drawer when you tap on an active item
2018-10-31 16:34:46 -07:00
Brent Vatne
e6a3b54792
Add back old drawer behavior with unmountInactiveRoutes config
2018-10-30 18:51:28 -07:00
Brent Vatne
0a8681176b
Merge pull request #16 from seanmorton/@seanmorton/no_more_stack_actions_reset
...
Don't use a reset sub-action for drawer items
2018-10-30 18:03:32 -07:00
Brent Vatne
429d9e00d1
Merge pull request #28 from react-navigation/@brent/persistent-scenes
...
Use react-native-screens and keep inactive screens in memory
2018-10-30 18:02:02 -07:00
Brent Vatne
bd209dd278
Merge pull request #26 from xianglinhe/master
...
Added DrawerLayout contentContainerStyle props back.
2018-10-30 18:01:49 -07:00
Brent Vatne
6ec0bae639
Default keyboardDismissMode to on-drag for drawer, also make it configurable
2018-10-28 17:26:52 -07:00
Brent Vatne
491c1a6792
Handle back button properly when the drawer is open
2018-10-16 15:10:18 -07:00
Eric Vicenti
e399100b2a
move to react-nav core and native deps
2018-10-15 12:30:43 -07:00
Brent Vatne
40f4477057
Pass through entire drawer config object to router
2018-10-11 12:12:36 -07:00
Brent Vatne
c22b09ede4
Vendor DrawerLayout, add DrawerGestureContext
2018-09-27 12:55:54 -07:00
Brent Vatne
3eca8faa0f
Support multiple actions in one tick and fire them in the order that they arrive
2018-09-26 16:50:21 -07:00
Brent Vatne
2d04d94936
Pass through minSwipeDistance
2018-09-15 17:33:27 +02:00