osdnk
50b366e734
fix: rtl in native app example
2020-01-28 15:40:08 +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
Michał Osadnik
9bfb295620
fix: screens integration on Android ( #294 )
2020-01-27 17:48:22 +01:00
Satyajit Sahoo
3dede316cc
feat: add preventDefault functionality in material bottom tabs
2020-01-22 21:57:39 +01:00
Satyajit Sahoo
67b2ecfcfc
chore: update stack examples
2020-01-22 15:46:51 +01:00
Satyajit Sahoo
84d75b37e7
chore: add a toggle for RTL
2020-01-20 15:58:46 +01:00
Satyajit Sahoo
65e5147910
chore: add some more examples
2020-01-20 15:38:05 +01:00
Satyajit Sahoo
f1df4a0808
feat: emit appear and dismiss events for native stack
2020-01-20 05:28:41 +01:00
Satyajit Sahoo
324fad33ef
chore: add some comments to metro config
2020-01-12 02:56:22 +01:00
Satyajit Sahoo
a23dfd419d
chore: remove nohoist from example
2020-01-10 13:12:32 +01:00
Satyajit Sahoo
011dabf919
chore: upgrade depenendecies
2020-01-09 02:50:48 +01:00
Satyajit Sahoo
67798af869
fix: clamp interpolated styles
2020-01-09 01:27:19 +01:00
Satyajit Sahoo
fbadea46f1
chore: setup detox for iOS
2020-01-07 05:14:04 +01:00
Satyajit Sahoo
b201fd2071
feat: add headerStatusBarHeight option to stack
2020-01-05 02:30:09 +01:00
Satyajit Sahoo
543679f185
chore: fix webpack config for example
2020-01-04 01:48:34 +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
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
873afec9fe
chore: tweak route names in example
2019-12-19 23:25:58 +01:00
Satyajit Sahoo
878297e52f
chore: update eslint config
2019-12-19 23:13:23 +01:00
Satyajit Sahoo
9843b92e05
chore: upgrade deps
2019-12-16 23:42:19 +01:00
Satyajit Sahoo
00fc616de0
feat: add custom theme support ( #211 )
2019-12-14 22:25:25 +01:00
Satyajit Sahoo
703edb3569
chore: fix loading back icon on Android
2019-12-14 06:37:21 +01:00
Satyajit Sahoo
42bc37d2ff
chore: update auth flow example
2019-12-12 13:36:43 +01:00
Satyajit Sahoo
eef17a801e
refactor: import from /native instead of /core
2019-12-11 17:44:21 +01:00
Satyajit Sahoo
458b531859
chore: add native stack to expo example
2019-12-10 13:13:35 +01:00
Satyajit Sahoo
b805ba111a
chore: upgrade react-native and expo
2019-12-09 22:42:49 +01:00
Satyajit Sahoo
f951e98dc6
chore: move example folder to root
2019-12-09 15:20:28 +01:00
Satyajit Sahoo
ce7d163073
chore: setup monorepo with yarn workspaces ( #38 )
2019-08-01 23:40:57 +01:00
satyajit.happy
cc76c69e70
feat: add backBehavior to TabRouter
2019-08-01 12:57:30 +02:00
satyajit.happy
0e2754df5b
feat: add an isFirstRouteInParent method
2019-08-01 12:45:57 +02:00
satyajit.happy
819b7904fa
feat: add a useFocusEffect hook
2019-08-01 12:38:58 +02:00
satyajit.happy
9ff483a554
fix: adjust index when route names are changed
2019-07-29 00:59:11 +02:00
Michal Osadnik
1368b4fd20
refactor: change names in example
2019-07-27 15:54:02 +02:00
satyajit.happy
c0715dda58
fix: fix tab router in example app
2019-07-24 15:18:58 +02:00
satyajit.happy
049d03f321
refactor: rehydrate only once
2019-07-24 11:20:13 +02:00
satyajit.happy
d6501d3e5d
fix: make rehydration keys stable
2019-07-24 10:56:41 +02:00
Michał Osadnik
f41657e4fe
refactor: make router a function ( #22 )
2019-07-23 23:21:23 +02:00
satyajit.happy
ab17e9af73
refactor: let router specify its state shape
2019-07-23 13:05:22 +02:00
Satyajit Sahoo
30b8fb26b1
fix: fix type signature for setParams ( #24 )
2019-07-23 00:53:38 +02:00
satyajit.happy
d3e200d727
refactor: only accept name in jumpTo
2019-07-23 00:26:43 +02:00
Satyajit Sahoo
bd6aa667cb
refactor: mark initial state as stale to determine when to rehydrate ( #23 )
2019-07-22 22:21:56 +01:00
satyajit.happy
2eb86cd215
feat: add a setOptions method to set screen options
...
In React Navigation, the screen options can be specified statically. If you need to configure any options based on props and state of the component, or want to update state and props based on some action such as tab press, you need to do it in a hacky way by changing params. it's way more complicated than it needs to be. It also breaks when used with HOCs which don't hoist static props, a common source of confusion.
This PR adds a `setOptions` API to be able to update options directly without going through params.
2019-07-22 20:50:53 +02:00
satyajit.happy
2b819e4310
feat: improve types for options and support a function
2019-07-22 12:21:40 +02:00
satyajit.happy
57b7ed827c
refactor: move some common actions to base router
2019-07-21 02:55:34 +02:00
Michał Osadnik
1de5494793
feat: add target argument to setParams ( #18 )
2019-07-20 20:51:03 +01:00
Michał Osadnik
4483dd2c3a
feat: make NAVIGATE and JUMP_TO to support key and name of the route ( #16 )
2019-07-20 16:46:29 +01:00
Satyajit Sahoo
44b2ace9ee
refactor: drop getStateForChildUpdate in favor of getStateForRouteFocus ( #15 )
2019-07-20 13:05:30 +01:00
satyajit.happy
38aa8e447b
docs: update README to match latest API
2019-07-18 22:09:44 +02:00
Michał Osadnik
d3099c18b8
refactor: move navigation.state to a route prop ( #6 )
2019-07-18 15:14:47 +02:00
satyajit.happy
b775dbaacf
feat: handle route names change
2019-07-18 14:47:04 +02:00