Commit Graph

81 Commits

Author SHA1 Message Date
Brent Vatne
1ee7aae32c Skip initializing the gesture properties if no width or height are available 2018-12-08 17:57:52 -08:00
Brent Vatne
405b780b86 Merge pull request #70 from yinhangfeng/optimization
Optimize gesture logic, Reduce unnecessary creation of duplicates Ani…
2018-12-08 17:56:54 -08:00
Brent Vatne
0f123b590b Fix crash caused by attempting to access properties on animatedStyle when no screen interpolator https://github.com/react-navigation/react-navigation-stack/issues/64 2018-11-30 12:40:12 -08:00
Brent Vatne
6c5aa3a4b8 Fix issue with navigation immediately on mount https://github.com/react-navigation/react-navigation/issues/5247 2018-11-30 12:03:17 -08:00
Brent Vatne
2f8c474620 Use flex on transparent card style so header is respected I don't understand why you would want a header in this case but the people have spoken https://github.com/react-navigation/react-navigation-stack/issues/65 2018-11-30 11:53:01 -08:00
Brent Vatne
722e560411 No shadow when transparent 2018-11-30 11:50:22 -08:00
Brent Vatne
80aebd642d Merge pull request #67 from alangumer/patch-1
gestureResponseDistance
2018-11-30 11:44:53 -08:00
Brent Vatne
8087045693 Merge pull request #62 from BrendonSled/patch-1
Bugfix - Card style background
2018-11-27 00:25:14 +07:00
Brent Vatne
6711967795 Force horizontal inset 2018-11-07 16:48:54 -08:00
Brent Vatne
e26e2fee5a Improve UIKit style masking and button opacity 2018-11-05 14:22:35 -08:00
Brent Vatne
a965e5ef43 Fix formatting 2018-11-03 20:06:44 -07:00
Brent Vatne
e856dda90e Fix incorrect background color leftover from debugging 2018-11-03 20:03:00 -07:00
Brent Vatne
beb2f75884 Don't fade the back image on Android, use transparent background color 2018-11-03 14:13:32 -07:00
Brent Vatne
57f1ade906 Merge pull request #33 from wakeless/mgall/allow-left-button-to-control-its-own-destiny
Allow headerLeft components to control their own rendering
2018-11-02 10:14:31 -07:00
Brent Vatne
ab20beddea Fix linting and typo 2018-10-31 19:23:44 -07:00
Brent Vatne
ae8bff7bd2 Fix modular back button overflow 2018-10-31 15:48:33 -07:00
Brent Vatne
379fba236c Use native driver on borderless button 2018-10-31 15:15:16 -07:00
Brent Vatne
55de860c2b Rename NavigationScenesReducer to just ScenesReducer 2018-10-31 15:12:29 -07:00
Brent Vatne
99457b0134 Use BorderlessButton on iOS and animate the opacity 2018-10-31 15:09:03 -07:00
Brent Vatne
f9522bcdf6 Fix scene reducer test 2018-10-31 14:02:12 -07:00
Brent Vatne
ab30e0c0e1 Add headerBackgroundTransitionPreset with 'toggle' 'translate' and 'fade' options 2018-10-31 13:38:21 -07:00
Brent Vatne
cbd227c6df Default to hide hidden header backgrounds 2018-10-31 13:22:03 -07:00
Brent Vatne
a26d2e6f59 Render the PanGestureHandler on Android as well 2018-10-30 16:18:21 -07:00
Eric Vicenti
4f00733555 Header to fade by default
Fixes https://github.com/react-navigation/react-navigation-stack/issues/12
2018-10-31 12:21:04 -07:00
Brent Vatne
73a5b8ba1d Improve example and state warning 2018-10-30 13:20:00 -07:00
Brent Vatne
a8d6962d0f Clean up transitioner a bit, fix issue where state is invalid and warn 2018-10-30 13:08:06 -07:00
Brent Vatne
15da5d89e1 Merge pull request #49 from react-navigation/@brent/queued-transitions
Rethink queued transitions
2018-10-30 10:35:03 -07:00
Eric Vicenti
2215eea02b fix lint 2018-10-29 20:01:11 -07:00
Eric Vicenti
528fede668 Avoid completion dispatch when nav state changed 2018-10-29 18:24:20 -07:00
Brent Vatne
c9e21498e4 If we are increasing the number of scenes, remove any scene from the list that is no longer in the navigation state 2018-10-26 09:19:03 -07:00
Brent Vatne
f1c3770f2d Fix programmatic back when gesture is in progress 2018-10-22 13:49:00 -07:00
Brent Vatne
f765b7e26d Fix firing transition end events when nested state change occurs 2018-10-22 13:02:40 -07:00
Brent Vatne
dfb37c20f0 Revert attempted fix for nested state change freeze 2018-10-22 12:05:42 -07:00
Brent Vatne
5b505664b8 Fix bug where transitioner freezes when nested state change occurs in the middle of transition 2018-10-17 15:26:13 -07:00
Brent Vatne
910df8e428 Fix lint errors 2018-10-17 13:19:31 -07:00
Brent Vatne
9e6405e167 No need to add PanGestureHandler on Android, no gestures there anyhow 2018-10-17 13:13:34 -07:00
Brent Vatne
1d7e48e554 Support inverted gesture in modal 2018-10-17 13:11:38 -07:00
Brent Vatne
ecad309497 Support gestureResponseDistance 2018-10-17 12:41:42 -07:00
Brent Vatne
824fee6f76 Remove unnecessary styles from header 2018-10-16 20:01:30 -07:00
Brent Vatne
dc1f1260dd Tweak Android transitions 2018-10-15 17:16:17 -07:00
Brent Vatne
fbcb51b747 Fix typo 2018-10-15 17:16:08 -07:00
Brent Vatne
40b7091873 Export assets for easy caching in Expo 2018-10-15 13:17:12 -07:00
Brent Vatne
395e53af73 Fix modular header back button to default to showing Back and respect visibility prop 2018-10-12 12:39:44 -07:00
Brent Vatne
6398566325 Tweak spring configuration, in particular to make them settle more quickly 2018-10-12 12:38:36 -07:00
Brent Vatne
8c952abc2c Fix lint errors 2018-10-12 11:34:03 -07:00
Brent Vatne
81f1915075 Depend on core and native 2018-10-12 11:23:17 -07:00
Brent Vatne
8b509dd525 Add options to opt-in/out of card overlay and shadow 2018-10-11 17:04:23 -07:00
Brent Vatne
b501825c1a Pass through all stack config to router 2018-10-11 12:03:40 -07:00
Brent Vatne
e1d5885076 Tweak opacity of overlay 2018-10-11 12:01:26 -07:00
Brent Vatne
5b01eaa6be Merge pull request #34 from pzatorski/feature/back-button-accessibility
change accessibilityLabel for HeaderBackButton - Fix iOS voiceover
2018-10-10 14:00:04 -07:00