Satyajit Sahoo
b1a65fc73e
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 17:28:35 +01:00
Michał Osadnik
70029d6c13
feat: add an option to change use a custom card overlay ( #7809 )
...
I find it sometimes useful to define overlay renderer on my own. Eg. I needed to replace the background with BlurView and with this API I find it quite easy
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-03-16 14:28:10 +01:00
Tien Pham
469d0542c7
fix: fix back gesture cancellation ( #7700 )
...
The problem here is that when we scroll back really fast, even though velocity is negative, `Math.abs(translation + velocity * gestureVelocityImpact)` will end up bigger than `distance / 2`.
I removed the `Math.abs`, I think it's not necessary. When `translation + velocity * gestureVelocityImpact` is negative, it's also < `distance / 2` and we should just close the screen.
Closes #6782
2020-03-16 12:03:16 +01:00
Satyajit Sahoo
c19da31240
refactor: enable screens only for last screen
...
This will avoid issues such as https://github.com/react-navigation/react-navigation/issues/6909
2020-02-24 11:37:25 +01:00
Satyajit Sahoo
86c39d2e0e
refactor: move types and base router to routers package
2020-02-10 16:04:20 +01:00
Satyajit Sahoo
f746ece61b
fix: use addListener only when available
2020-02-05 09:43:00 +01:00
Satyajit Sahoo
41a5e1a385
fix: wrap navigators in gesture handler root
2020-02-03 00:18:32 +01:00
Satyajit Sahoo
3d937d1e65
fix: dispatch pop early when screen is closed with gesture ( #336 )
...
fixes #267
2020-02-02 23:56:05 +01:00
Satyajit Sahoo
94d7b28c0b
fix: disable screens when mode is modal on older expo versions
2020-02-01 17:21:18 +01:00
osdnk
9be904d9c4
fix: increase epsilon in CardContainer.tsx
2020-01-30 22:38:13 +01:00
osdnk
edf96d839f
fix: web with internal interpolation listener
2020-01-28 14:52:41 +01:00
Satyajit Sahoo
6262f7298b
feat: add animationTypeForReplace option ( #297 )
...
Currently, when a screen is replaced the new screen comes into focus with a push animation. However, sometimes you might want to customize how the animation looks like.
For example, when the user logs out, animating out the previous screen like pop feels more natural than doing a push animation with the sign in screen. The PR adds a new `animationTypeForReplace` option to control this. Specifying `animationTypeForReplace: 'pop'` will pop the previous screen, otherwise the new screen will be pushed like before.
Co-authored-by: Michał Osadnik <micosa97@gmail.com >
2020-01-27 18:20:53 +01:00
osdnk
a6f58677dc
fix: make UNVERSIONED insufficient expo version
2020-01-27 18:01:35 +01:00
Michał Osadnik
9bfb295620
fix: screens integration on Android ( #294 )
2020-01-27 17:48:22 +01:00
Satyajit Sahoo
5fe140e61b
fix: fix shadow position for inverted animations
2020-01-26 17:02:00 +01:00
Satyajit Sahoo
16c64e7298
fix: pass correct previous scene to header with headerMode: screen
2020-01-23 15:29:40 +01:00
Satyajit Sahoo
0a982ee698
fix: don't use native driver on web
...
The native driver is not supported for animations on web. It just prints a wanrning in the console. So we conditionally disable it on web.
2020-01-20 06:20:06 +01:00
Satyajit Sahoo
38520a97ff
fix: position inactivscreensws offscreen by default
2020-01-18 23:13:36 +01:00
Satyajit Sahoo
43d2c456be
fix: slide the header up to hide it for vertical animation
2020-01-18 04:13:37 +01:00
Satyajit Sahoo
7a3d652e84
fix: change POP behaviour to remove elements from index only
...
Fixes #256
2020-01-09 01:06:55 +01:00
Michał Osadnik
d3f5c55dbf
fix: remove clamping in extrapolation of progress of stack animation
2020-01-07 06:46:29 -05:00
Satyajit Sahoo
d8b88bd83f
fix: memoize interpolated style to avoid extra work
2020-01-05 17:25:27 +01:00
Satyajit Sahoo
65ce20ecbc
fix: use memo for card container
2020-01-05 15:29:41 +01:00
Satyajit Sahoo
12d90833eb
fix: expose the header height even if not floating
2020-01-05 15:10:05 +01:00
Satyajit Sahoo
133b59cd17
feat: expose header height in context
2020-01-05 14:26:16 +01:00
Satyajit Sahoo
a9e584c3b7
fix: compare with correct height when floating header height updates
2020-01-05 13:58:24 +01:00
Satyajit Sahoo
b201fd2071
feat: add headerStatusBarHeight option to stack
2020-01-05 02:30:09 +01:00
Satyajit Sahoo
7f963a74bb
fix: keep screens for replace when animation is enabled
2020-01-03 21:39:03 +01:00
Satyajit Sahoo
572beae41b
fix: use gesture direction when using next screen's animation
2020-01-03 21:27:48 +01:00
Satyajit Sahoo
15fe3ebb51
refactor: remove PointerEventsView
2020-01-03 21:22:44 +01:00
Satyajit Sahoo
2c31d1705c
fix: dismiss keyboard on page change
2020-01-03 18:11:44 +01:00
Satyajit Sahoo
87d28ca430
refactor: minor tweaks
2020-01-03 17:07:42 +01:00
Michał Osadnik
6b9b999c5b
fix: interaction manager in stack ( #237 )
2020-01-03 15:48:06 +01:00
Satyajit Sahoo
59803f54d6
fix: improve gesture performance
2020-01-01 16:26:51 +01:00
Satyajit Sahoo
935659899f
fix: use native driver for gestures
2020-01-01 15:48:26 +01:00
Satyajit Sahoo
282f62c258
refactor: use animated instead of reanimated
2020-01-01 12:53:01 +01:00
Satyajit Sahoo
878297e52f
chore: update eslint config
2019-12-19 23:13:23 +01:00
Satyajit Sahoo
9fc1af02c2
refactor: remove extra prop
2019-12-16 15:43:38 +01:00
Satyajit Sahoo
c110570d4c
fix: disable style interpolation for card when animation is disabled
2019-12-16 15:25:19 +01:00
Satyajit Sahoo
d57226fd8b
refactor: remove cardTransparent in favor of cardStyle
2019-12-16 15:09:10 +01:00
Satyajit Sahoo
00fc616de0
feat: add custom theme support ( #211 )
2019-12-14 22:25:25 +01:00
Satyajit Sahoo
eef17a801e
refactor: import from /native instead of /core
2019-12-11 17:44:21 +01:00
Christian Falch
6cddb5238c
feat: expose animation related values in context
2019-12-10 15:53:27 +01:00
Satyajit Sahoo
cd1acbf8b5
refactor: add inverted direction and simplify code
2019-12-10 13:07:03 +01:00
Satyajit Sahoo
c7e35e0f0d
refactor: use proc node to improve reanimated mount time
...
Co-authored-by: Michał Osadnik <micosa97@gmail.com >
2019-12-09 22:43:19 +01:00
Satyajit Sahoo
b6c7d2b626
refactor: remove navigation prop uses from CardStack
2019-12-09 22:28:49 +01:00
Satyajit Sahoo
d618ab382e
feat: export underlying views used to build navigators ( #191 )
...
Exporting the underlying views makes it easy to build custom navigators on top of our views. Libraries such as react-native-router-flux rely on such exports to build custom routing solutions while being able to take advantage of our work.
This can also be the solution to adding custom behaviour without us needing to add separate config to override the router.
2019-12-04 00:22:53 +01:00
Satyajit Sahoo
eaf88478cc
fix: correctly update layout on onLayout events
2019-12-03 20:32:38 +01:00
Satyajit Sahoo
2750cad272
fix: respect custom safearea insets when calculating header height
...
fixes #190
2019-11-29 17:25:34 +01:00
Satyajit Sahoo
d619292bf2
chore: upgrade deps
2019-11-17 02:42:28 +01:00