Commit Graph

59 Commits

Author SHA1 Message Date
Satyajit Sahoo
2733b2a319 chore: sync latest stack 2020-01-05 14:56:36 +01:00
Satyajit Sahoo
9ac1904862 refactor: migrate to animated 2020-01-01 17:37:34 +01:00
Satyajit Sahoo
c3133cdb5f refactor: remove cardTransparent in favor of cardStyle 2019-12-16 16:25:22 +01:00
Satyajit Sahoo
8b11e4df0c chore: reuse the stack code from react navigation 5
The code for the stack is almost the same as v5, with the only differences being the types and the navigation object. To avoid making same changes in 2 places which error-prone, I decided to reuse the same code. Due to the differences, it's not possible to just use it as a dependency, so I followed this approach:
- Copy the source files on post install and apply patches to make it work with React Navigation 4
- When we need to make changes, we can make them in v5 repo and update the version here, most of the time it wouldn't need any extra work
- If we need to make v4 specific changes, we can change the code in vendor/ and then re-generate the patch with `yarn patch`
2019-12-10 15:22:12 +01:00
Christian Falch
c63259df37 feat: expose animation related properties in context (#278) 2019-11-06 12:10:15 +01:00
Samuel Chamberland
82c732a638 feat: expose stack transition values via context (#265) 2019-10-24 07:34:15 -04:00
Michał Osadnik
ef0bfe0f25 fix: send events even is stack animation is vain (#270) 2019-10-22 16:46:36 +02:00
satyajit.happy
b540c4d78f chore: add transparent example to per screen transitions 2019-10-07 17:40:14 +02:00
satyajit.happy
81ea376b34 chore: set headerMode: screen in per screen transition example 2019-10-07 15:51:04 +02:00
satyajit.happy
8f83f58913 feat: add a more explicit headerShown option 2019-10-06 15:37:08 +02:00
satyajit.happy
1eae99dca0 fix: use next screen's animation when not focused 2019-10-06 04:30:34 +02:00
satyajit.happy
63e2ad56df chore: migrate example to TS 2019-09-22 02:17:55 +02:00
satyajit.happy
9208f6457e fix: fix interpolation in example 2019-09-22 01:26:23 +02:00
Tomasz Czajęcki
f4c8078da8 feat: if cardStyle has flexed specified, set the same value on P… (#206)
* feat: if cardStyle has flexed specified, set the same value on PointerEventsView

* Stop producing empty object if no override is needed

* Change produced false to undefined

* Update cardStyle to handle arrays

* Update code to use StyleSheet.flatten

* Use better styling

* Update snapshots
2019-09-10 22:51:58 +02:00
satyajit.happy
4c012ad1ea fix: add peer dep on react-navigation 2019-09-09 21:52:09 +02:00
Brent Vatne
ea4c44af7b chore: get example running in bare react-native on ios 2019-08-29 16:09:53 -07:00
wojciechstaniszswmansion
5dc8a289ef feat: add 'vertical-inverted' as gesture direction (#184)
As for now there is no way to dismiss modal by moving up, only swiping down is available.

https://streamable.com/s/ogjyq/gqugbc
2019-08-22 16:11:04 +02:00
satyajit.happy
ef3742e992 refactor: rename gesturesEnabled to gestureEnabled for consistency 2019-07-15 17:35:21 +02:00
satyajit.happy
4db67a17a6 refactor: don't use keyboardAwareNavigator The HOC currently forces us to expose some options in stack config which we don't want to. So we vendor this functionality for now to avoid this. 2019-07-14 21:55:19 +02:00
satyajit.happy
77eb819edd refactor: rename WipeFromBottomAndroid to RevealFromBottomAndroid 2019-07-10 16:04:48 +02:00
satyajit.happy
919a274b4c fix: fix back button not working in header 2019-07-07 14:39:28 +02:00
Tomasz Czajęcki
8795e7b660 feat: allow specifying style interpolators in navigationOptions (#155) 2019-07-06 12:41:34 +02:00
satyajit.happy
c6ba6e8c1c feat: add iOS modal presentation style 2019-06-07 15:05:52 +02:00
satyajit.happy
4b2e6a95ca feat: add headerTransparent option 2019-06-21 12:54:19 +02:00
satyajit.happy
cb49d431f4 feat: add cardX options in navigationOptions 2019-06-15 00:06:24 +02:00
satyajit.happy
7f99f6f7ca fix: handle RTL properly 2019-06-14 13:56:36 +02:00
satyajit.happy
6b2079735b refactor: keep transition states locally and implement animated replace 2019-06-08 01:18:48 +02:00
satyajit.happy
b6f9e33c8d refactor: switch to fade animation for header by default 2019-06-06 17:08:09 +02:00
satyajit.happy
3be00f5c2a chore: fix snapshots 2019-06-06 12:42:52 +02:00
satyajit.happy
06b3867e17 refactor: rewrite based on reanimated 2019-05-25 00:58:11 +02:00
satyajit.happy
3b907d39ee refactor: migrate codebase to typescript 2019-04-26 10:20:51 +02:00
Brent Vatne
533475684a Fix lint error 2019-02-04 18:03:22 -08:00
Brent Vatne
de3f806595 Update example to SDK32 2019-01-16 21:37:06 -08:00
Brent Vatne
7ea8f84400 Fix lint error 2018-11-30 12:48:38 -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
c064952a0a Add a title in modal example 2018-11-26 09:27:14 -08: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
ab20beddea Fix linting and typo 2018-10-31 19:23:44 -07:00
Brent Vatne
5e66f422db Add header preset example 2018-10-31 15:39:59 -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
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
Brent Vatne
f1c3770f2d Fix programmatic back when gesture is in progress 2018-10-22 13:49:00 -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
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
e1b8f53574 Move to core/native peerDependencies and update example to use stack at root 2018-10-16 19:58:21 -07:00