Brent Vatne
0b0e9e9df5
Fix TabRouter to support shorthand route config
2018-02-19 18:16:23 -08:00
Brent Vatne
42b0ccca79
Release 1.1.0-rc.5
2018-02-19 18:16:23 -08:00
Brent Vatne
da6a960bb1
Fix regression in modular back button
2018-02-19 18:16:23 -08:00
Ron Arts
3ca47ec778
Fix react-native-web support for #3526 ( #3546 )
...
* MaskedViewIOS use broke react-native-web support, this fixes it.
* Fallback more gracefully.
* Actually return the value ...
2018-02-19 13:48:12 +01:00
Marcin Raburski
14ee56a20d
getComponentForState made more generic ( #2498 )
2018-02-19 04:14:13 -08:00
Matthieu Lemoine
9d36daf48e
Pass prevTransitionsProps to transitionConfig ( #3304 )
...
* Pass prevTransitionsProps to transitionConfig
* Remove flow type
2018-02-19 02:29:46 -08:00
Brent Vatne
055fdb2ffc
Release 1.1.0-rc.4
2018-02-17 12:50:26 -08:00
Brent Vatne
b3bf80634d
Move the back button handler subscription to the NavigationContainer constructor ( #3542 )
...
* Move the back button handler subscription to the constructor to fix precedence
- See 07d92947a1/src/Navigation.js (L190-L193)
* Return the boolean result of dispatch in global back handler
2018-02-17 12:50:04 -08:00
Brent Vatne
fafd0e8702
Cleanup around StackRouter ( #3487 )
...
* Make StackRouter a bit easier to read, update and add some comments, add an explicit test around stack and navigate
* Address feedback for clarity
2018-02-17 11:14:03 -08:00
Brent Vatne
d94045817c
Release 1.1.0-rc.3
2018-02-17 09:42:45 -08:00
Brent Vatne
f0acaddf05
Fix headerLeft on first screen regression
2018-02-17 09:40:59 -08:00
Brent Vatne
9beb32ecac
Update snapshots
2018-02-16 18:14:07 -08:00
Brent Vatne
29a29936bf
Remove withNavigationFocus example until it's fixed
2018-02-16 18:10:33 -08:00
Brent Vatne
8961fef00b
Bump version
2018-02-16 18:09:40 -08:00
Brent Vatne
021c7e54be
Do not use hide views when swipe or animations are enabled. Improve withNavigationFocus example
2018-02-16 18:05:39 -08:00
Brent Vatne
27538cad94
Properly thread through childNavigation
2018-02-16 17:26:01 -08:00
Brent Vatne
9a8a50ef1d
Release 1.1.0-rc.0
2018-02-16 17:07:28 -08:00
Brent Vatne
2c6dc35723
Revert "Revert "Add getParam navigation helper ( #3510 )" ( #3532 )"
...
This reverts commit 5febb81a1cdf67a1e4a7f5a4a843087d6288fa1c.
2018-02-16 17:06:16 -08:00
Brent Vatne
3600ecbd9b
Add back support for lazy tabs and use removeClippedSubviews ( #3538 )
...
* Lazy initialization of tabs and move contents off-screen when not active
* Make subview clipping and lazy both configurable
* Record snapshots again
* Update type definition
* Remove unused log
2018-02-16 16:59:19 -08:00
Sébastien Lorber
c74f001b1c
add withNavigationFocus HOC ( #3512 )
...
* add withNavigationFocus HOC
See:
- https://github.com/react-navigation/react-navigation/issues/51#issuecomment-276003658
- https://github.com/react-navigation/react-navigation/issues/51#issuecomment-278761705
- https://github.com/react-navigation/react-navigation/pull/3345#issuecomment-360260067
* typos
* remove unused import
* Add withNavigationFocus export
* add example TabsWithNavigationFocus
* add example TabsWithNavigationFocus
* withNavigationFocus: get navigation from context or props
* subs => subscriptions
* fix flow issues
2018-02-16 16:57:33 -08:00
Brent Vatne
7f4706e4cc
Update snapshots
2018-02-16 12:45:57 -08:00
Brent Vatne
d0ef33b12f
Several small changes related to header style commit
2018-02-16 12:42:44 -08:00
Brent Vatne
3c3668c952
Header transition presets with support for standard iOS transition style ( #3526 )
...
Header transition presets with approximate support for UIKit transition style
2018-02-16 12:41:59 -08:00
Brent Vatne
5febb81a1c
Revert "Add getParam navigation helper ( #3510 )" ( #3532 )
...
This reverts commit 50dcb37cd728715da4a971646127c684b5597088.
2018-02-15 13:24:40 -08:00
Peter Piekarczyk
50dcb37cd7
Add getParam navigation helper ( #3510 )
...
* add getParam helper
* passing tests
* check for existence of param instead of just or
* fix spacing
* use in instead of checking for null
* add test for null
2018-02-15 10:14:08 -08:00
Ron Arts
69bca191a7
The Linking and BackHandler components are now both supported by react-native-web ( #3494 )
...
so there's no need to supply dummy replacements.
2018-02-13 12:23:26 -08:00
Sébastien Lorber
4df9198979
fix doc link ( #3513 )
2018-02-13 10:30:20 -08:00
Ashoat Tevosyan
0fc7f87173
Run Prettier on Flow libdef on precommit ( #3495 )
2018-02-12 14:45:50 -08:00
Brent Vatne
5b4d11ab5d
Better orientation layout on playground
2018-02-12 11:53:23 -08:00
Brent Vatne
4d1cc285b9
Slightly improved margins on the iOS header back button
2018-02-09 21:19:02 -08:00
Brent Vatne
41725afa8a
Use the correct iOS back icon
2018-02-09 20:08:56 -08:00
Brent Vatne
58b77d44ae
Make Router({ RouteName: Component }) a valid way to configure a router ( #3486 )
...
* Make Router({routeName: Component}) a valid way to instantiate a route
* Update App.js in NavigationPlayground
* Fix route config flow type
2018-02-09 18:20:01 -08:00
Kazato Sugimoto
1d49b6e3fe
Decode URI encoded string of deep link ( #3455 )
2018-02-09 16:26:20 -08:00
Brent Vatne
58b8a08af6
Update snapshots for TabView/TabNavigator
2018-02-09 14:22:31 -08:00
Maxime Florent Fankam
b11ea8a1d5
Allow swipeEnabled be a function ( #3378 )
...
* Allow swipeEnabled be a function with state param
2018-02-09 14:04:17 -08:00
Brent Vatne
3c2b977eca
Number of lines in label for TabBarBottom is always 1
2018-02-09 13:51:04 -08:00
Brent Vatne
95565487ec
Make it possible to go back to menu from key example and improve banner on menu screen ( #3479 )
...
* Make it possible to go back to menu from key example and improve banner on menu screen
* Fix NavigationPlayground flow error
2018-02-08 19:10:54 -08:00
Brent Vatne
a26d2acfca
Bump to patch version 1.0.3
v1.0.3
2018-02-08 18:24:20 -08:00
Brent Vatne
a1b3d2213d
No need to have a conditional around slicing the routes array
2018-02-08 18:22:02 -08:00
Brent Vatne
eb39df507e
Prevent navigation from getting in bad state when navigating back to route by key ( #3478 )
2018-02-08 18:20:14 -08:00
Brent Vatne
cca06bb530
Do not use contentInsetAdjustmentBehavior on iOS in ModalStack example
2018-02-08 16:14:45 -08:00
Eric Vicenti
2187d8fe66
Consistent treatment of route keys ( #3474 )
...
This problem was found and fixed by @matthargett and @jayphelps in #3397 . I’m just rebasing and cleaning a few things up
2018-02-08 15:28:27 -08:00
Eric Vicenti
67f98b69eb
Simpler implementation of withNavigation ( #3476 )
...
This will allow for refs with onRef (fixes #3461 ), and will avoid all these warnings from throwing during our tests
2018-02-08 14:20:52 -08:00
Brent Vatne
c0c5c86f63
Bump to patch version 1.0.2
v1.0.2
2018-02-08 12:49:04 -08:00
Brent Vatne
4388b6403c
Remove console logs from published version of navigation playground
2018-02-08 12:48:28 -08:00
Brent Vatne
2cb740fbf6
Only initialize the CardStack PanResponder if gestures are enabled
2018-02-08 12:36:26 -08:00
Brent Vatne
ac741a703b
Remove extra scene in floating header if it hasn't been evicted due to transition yet
2018-02-08 12:32:09 -08:00
Brent Vatne
5641b42975
Revert "StackRouter block actions while transitioning ( #3469 )"
...
This reverts commit 858a0d7a5354fcdafaf76d3a179ce070ed66e468.
2018-02-08 11:49:25 -08:00
Brent Vatne
ea19ceaa6a
Bump to minor version 1.0.1
v1.0.1
2018-02-08 10:47:48 -08:00
Brent Vatne
57ae6e4736
Make TabRouter handle COMPLETE_TRANSITION in a child router without switching active index ( #3473 )
2018-02-08 10:46:12 -08:00