Satyajit Sahoo
8f40a98086
fix: hard code header height for animation
...
closes #6818
2020-02-14 18:44:54 +01:00
Satyajit Sahoo
6c9447a38c
fix: check if we can go baack before dispatching pop
2020-02-12 13:17:08 +01:00
Satyajit Sahoo
b6e7e08b9a
fix: provide route context to header and bottom tabs
2020-02-11 15:42:00 +01:00
Satyajit Sahoo
86c39d2e0e
refactor: move types and base router to routers package
2020-02-10 16:04:20 +01:00
Satyajit Sahoo
7160a511e6
chore: set initial insets for safe areas
2020-02-10 16:04:20 +01:00
Satyajit Sahoo
a121844148
chore: prepare for stable release ( #354 )
2020-02-05 14:47:36 +01:00
Satyajit Sahoo
f746ece61b
fix: use addListener only when available
2020-02-05 09:43:00 +01:00
Satyajit Sahoo
abdf9d12b5
fix: use .native for masked view instead of .web
2020-02-03 05:47:25 +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
Satyajit Sahoo
0ead2662ec
fix: add accessibilityRole=header to header title
2020-01-31 17:27:47 +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
141d397bdf
chore: tweak types for stack
2020-01-28 14:35:31 +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
65e5147910
chore: add some more examples
2020-01-20 15:38:05 +01:00
Satyajit Sahoo
321fa653ad
fix: handle header translation for horizontal-inverted
...
When going from a screen with header to screen with no header, we need to translate the header to right if the animation direction is inverted.
2020-01-20 10:55:10 +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
fe82276b1f
fix: use a fade animation for header in all presets
2020-01-18 03:54:01 +01:00
Satyajit Sahoo
da67e134d2
feat: let the navigator specify if default can be prevented
2020-01-14 16:48:56 +01:00
Satyajit Sahoo
23f76189a4
refactor: rename forStatic to forSlide for header
2020-01-13 00:54:05 +01:00
Satyajit Sahoo
37d26ca994
fix: change default screen change animation on web
2020-01-09 02:59:36 +01:00
Satyajit Sahoo
5470aeaca2
fix: don't add header animation if mode is not float
2020-01-09 02:54:01 +01:00
Satyajit Sahoo
67798af869
fix: clamp interpolated styles
2020-01-09 01:27:19 +01:00
Satyajit Sahoo
32ffaac647
fix: only render last 3 headers in stack
2020-01-09 01:10:44 +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
Satyajit Sahoo
77b757091c
fix: provide initial values for safe area to prevent blank screen ( #238 )
...
https://github.com/react-navigation/stack/issues/328
2020-01-03 16:25:59 +01:00
Michał Osadnik
6b9b999c5b
fix: interaction manager in stack ( #237 )
2020-01-03 15:48:06 +01:00
imgbot[bot]
8c5f84094f
chore: optimize images ( #236 )
...
*Total -- 272.34kb -> 260.85kb (4.22%)
/packages/stack/src/views/assets/back-icon-mask.png -- 1.58kb -> 0.89kb (43.61%)
/example/assets/avatar-1.png -- 3.33kb -> 2.40kb (27.96%)
/example/assets/avatar-2.png -- 2.29kb -> 1.67kb (26.87%)
/example/assets/icon.png -- 1.07kb -> 0.88kb (17.51%)
/example/assets/album-art-4.jpg -- 34.70kb -> 33.05kb (4.75%)
/example/assets/album-art-1.jpg -- 28.85kb -> 27.58kb (4.38%)
/example/assets/album-art-3.jpg -- 28.53kb -> 27.37kb (4.05%)
/example/assets/book.jpg -- 97.60kb -> 94.13kb (3.56%)
/example/assets/album-art-2.jpg -- 20.94kb -> 20.33kb (2.94%)
/example/assets/album-art-6.jpg -- 22.07kb -> 21.57kb (2.26%)
/example/assets/album-art-8.jpg -- 21.28kb -> 20.92kb (1.69%)
/example/assets/album-art-7.jpg -- 10.10kb -> 10.05kb (0.5%)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com >
Co-authored-by: Imgbot <help@imgbot.net >
2020-01-03 11:37:33 +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