Ron Arts
d9c637182e
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 21:23:26 +01:00
Sébastien Lorber
3cf67baeeb
fix doc link ( #3513 )
2018-02-13 19:30:20 +01:00
Ashoat Tevosyan
b033e5d960
Run Prettier on Flow libdef on precommit ( #3495 )
2018-02-12 17:45:50 -05:00
Brent Vatne
3a31758f2d
Better orientation layout on playground
2018-02-12 11:53:23 -08:00
Brent Vatne
6ef6a05b85
Slightly improved margins on the iOS header back button
2018-02-09 21:19:02 -08:00
Brent Vatne
bba1023ece
Use the correct iOS back icon
2018-02-09 20:08:56 -08:00
Brent Vatne
2c6ce1426a
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
9bf6a4cd1b
Decode URI encoded string of deep link ( #3455 )
2018-02-10 09:26:20 +09:00
Brent Vatne
aa7f00540b
Update snapshots for TabView/TabNavigator
2018-02-09 14:22:11 -08:00
Maxime Florent Fankam
0915c0572a
Allow swipeEnabled be a function ( #3378 )
...
* Allow swipeEnabled be a function with state param
2018-02-09 23:04:17 +01:00
Brent Vatne
1f0c099e19
Number of lines in label for TabBarBottom is always 1
2018-02-09 13:51:04 -08:00
Brent Vatne
28abefd244
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
cc344933e8
Bump to patch version 1.0.3
2018-02-08 18:24:20 -08:00
Brent Vatne
37a3225cab
No need to have a conditional around slicing the routes array
2018-02-08 18:20:29 -08:00
Brent Vatne
36535809cb
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
1cdf7cecbe
Do not use contentInsetAdjustmentBehavior on iOS in ModalStack example
2018-02-08 15:54:14 -08:00
Eric Vicenti
48c82e4ec3
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
261afab172
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
2b1e46cddf
Bump to patch version 1.0.2
2018-02-08 12:49:04 -08:00
Brent Vatne
061201f7f0
Remove console logs from published version of navigation playground
2018-02-08 12:48:28 -08:00
Brent Vatne
6c9a01c7bb
Only initialize the CardStack PanResponder if gestures are enabled
2018-02-08 12:36:26 -08:00
Brent Vatne
9ae55e21d3
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
2c8dda917a
Revert "StackRouter block actions while transitioning ( #3469 )"
...
This reverts commit 858a0d7a53 .
2018-02-08 11:49:25 -08:00
Brent Vatne
84ee39c788
Bump to minor version 1.0.1
2018-02-08 10:47:48 -08:00
Brent Vatne
3015796b2b
Make TabRouter handle COMPLETE_TRANSITION in a child router without switching active index ( #3473 )
2018-02-08 10:46:12 -08:00
Eric Vicenti
f5fafff975
StackRouter block actions while transitioning ( #3469 )
...
The most straightforward fix for two issues is to block all navigation actions while mid-transition of a stack navigator. This will fix:
The double-navigate on double tap issue, because the first navigation will start the transition and the second action will be ignored.
Will fix the buggy header experience that you can see when going back and forward to a different route quickly. This happens because the next navigate action happens before the completion action. After the fix, the navigate action will be ignored, the user will tap again, and will see a good transition
2018-02-08 09:02:47 -08:00
Dave Pack
32e4f50769
Sync and switch SafeAreaView with standalone ( #3452 )
...
* add react-native-safe-area-view npm package
* remove local SafeAreaView, import from package in views
* update to latest react-native-safe-area-view
* update snapshots
2018-02-07 17:32:06 -08:00
Brent Vatne
fa22019a20
Add custom back button example
2018-02-07 10:42:06 -08:00
Brent Vatne
1163297dff
Bump to 1.0.0
2018-02-06 17:51:55 -08:00
Brent Vatne
95bbcbdb42
Prevent push from bubbling up ( #3454 )
2018-02-06 17:49:52 -08:00
Brent Vatne
171fd5459e
Prevent pop and popToTop from bubbling up to parent stack ( #3453 )
2018-02-06 17:35:32 -08:00
Brent Vatne
900f61c375
Bump version
2018-02-06 15:59:44 -08:00
Eric Vicenti
68ce3654a9
Fix issue with StackRouter popToTop ( #3451 )
...
Previously the state was getting squashed, in this case it would destroy the routeName of the state, which was a route for the parent navigator, who could no longer render properly.
2018-02-06 15:56:39 -08:00
Brent Vatne
6ba55c83f9
Bump version and update description
2018-02-06 14:53:08 -08:00
Brent Vatne
6e130d95fb
Remove Header.HEIGHT deprecation warning, no good alternative solution available yet
2018-02-06 14:48:44 -08:00
Brent Vatne
5314da608f
Bump version
2018-02-06 14:13:41 -08:00
Eric Vicenti
ac93482b77
Fix StackRouter Replace Key Behavior ( #3450 )
...
Replace should actually provide new keys on the replaced route, use ‘newKey’ on the action if you want to define the new route key
2018-02-06 14:12:59 -08:00
Brent Vatne
a575d4f295
Bump version
2018-02-06 13:01:46 -08:00
Eric Vicenti
72e45722d1
StackNavigator Replace Action ( #3440 )
...
* Navigation replace action
The long awaited action to replace the a route in StackNavigator
* Fix flow maybe
2018-02-06 12:59:16 -08:00
Brent Vatne
b89e1231b3
Bump version
2018-02-06 12:49:43 -08:00
Brent Vatne
da76c35100
Add adaptive to TabBarBottom flow interface
2018-02-06 10:41:14 -08:00
Eric Vicenti
974b408d9a
Fix focus event for initial screen ( #3448 )
2018-02-06 12:49:23 -08:00
Peter Steffey
b45fca2086
Fix #2795 - Not reducing header height in landscape on iPad ( #3251 )
...
* Adding tablet check for small header
* Switching to Platform.isPad
* Moving fully to Platform.isPad, no isHeightConstrained
2018-02-06 13:40:03 -05:00
Peter Steffey
bb09b7d13d
Issue #2794 - Tab bar fix - Continued from #3041 ( #3267 )
...
* Fixing iPad iOS 11 Tab Bar Bottom Behavior with changing widths via Multitasking
* Adding width constrained check
* Moving to only Platform.isPad (no more layout-based tests)
* Remove type import
2018-02-06 13:39:41 -05:00
Jay Phelps
ac13204eaa
remove $FlowFixMe comments left over, as flow is no longer used ( #3439 )
2018-02-06 05:59:38 -08:00
Brent Vatne
e4a6c47e28
Use a stack inside of drawer
2018-02-05 14:48:30 -08:00
Brent Vatne
0c2fb5ce37
Bump version
2018-02-05 11:43:53 -08:00
Brent Vatne
a8c6a4b767
Fix tests
2018-02-05 11:43:33 -08:00
Eric Vicenti
f827ecaac4
Key for completion action, to prevent eager didFocus ( #3435 )
...
The completion action would previously change the isTransitioning of any state, but this will ensure that the completing navigator only marks its own state as isTransitioning:false. Now, even when transition completion happens immediately on the parent, the child focus event still waits for the child isTransitioning to go false.
2018-02-05 11:33:00 -08:00
Eric Vicenti
1db12db9c6
Fix Transitioner race condition ( #3434 )
...
This code was added during the events implementation, but I think we should be able to manage this circumstance from the parent context. In any case, any events bugs that result from this change will be far less insidious than the cardstack transitioner issue we experience now
2018-02-05 10:52:08 -08:00