Nicolas Beck
c6301abaed
Add initialRouteKey for StackRouter ( #3540 )
...
* use initialRouteName as key when initializing StackRouter
* fix null headerLeft
* merge back
* fixed tests
* use config flag
* fixed snapshots
* implemented requested changes
2018-03-02 16:06:27 -08:00
Brent Vatne
4569ad49f9
Fix regression in error message for route config validation
2018-03-02 12:18:11 -08:00
Arseny Yankovsky
214eeb13fb
Allow modification of SafeAreaView props ( #3496 )
...
* SafeAreaView fix
* Updated to only allow modification of forceInset property of SafeAreaView
2018-03-01 13:42:19 -08:00
Michał Pierzchała
416fe58cab
Move contributing guide to CONTRIBUTING.md ( #3631 )
2018-03-01 10:11:30 -08:00
Eric Vicenti
2e47cbb3cb
Drawer Router ( #3618 )
2018-02-27 18:34:05 -08:00
Brent Vatne
cd99dc8054
Update snapshots
2018-02-27 17:32:13 -08:00
Eric Vicenti
e27ad22c57
[BREAKING] New createNavigator API ( #3392 )
...
* New createNavigator and View API
See the RFC here:
https://github.com/react-navigation/rfcs/blob/master/text/0002-navigator-view-api.md
* shattered dreams of flow
* fix export
* Fix tab view issues found by brent
2018-02-27 17:27:58 -08:00
Brent Vatne
6785729fb5
Fix snapshots
2018-02-26 16:02:38 -08:00
Brent Vatne
d3b6e70d16
Clarify that people should not report Redux or MobX related integration issues here
2018-02-26 15:53:14 -08:00
Brent Vatne
5f32a48c16
Release 1.2.1
v1.2.1
2018-02-26 14:04:44 -08:00
Brent Vatne
d5a0b5912b
Apply StyleSheet.flatten properly to headerStyle. Fixes #3608
2018-02-26 14:04:36 -08:00
Yordis Prieto
13fd8acb20
fix typespec ( #3583 )
2018-02-26 12:25:13 -08:00
Serhii Palash
8fc8f3b8f7
Fix bug #3279 “Action within RESET doesn't trigger” ( #3593 )
...
https://github.com/react-navigation/react-navigation/issues/3279
2018-02-26 12:14:29 -08:00
Brent Vatne
a37473c5e4
Release 1.2.0
v1.2.0
2018-02-25 17:46:44 -08:00
Brent Vatne
23eb0839cb
Improve crossfade configuration for header
2018-02-25 17:44:16 -08:00
Brent Vatne
e84473db78
Use a closer-to-correct spring animation when releasing a gesture in CardStack ( #3601 )
2018-02-25 17:20:39 -08:00
Brent Vatne
c8531d0f38
Pop to top on TabNavigator when tapping already focused tab icon ( #3589 )
...
* Pop to top when tapping the tab icon for an already focused tab
* Dispatch popToTop with key to scope the action properly
* Add test for POP_TO_TOP with key
2018-02-25 16:33:20 -08:00
Vojtech Novak
276fb8f7b3
remove support for deprecated navigation actions ( #3595 )
...
* remove support for deprecated navigation actions
* remove deprecated action from flow definitions
2018-02-24 12:08:14 -08:00
Johan Ruokangas
ab758bcaaa
Fix RFC link ( #3594 )
2018-02-24 12:50:31 +01:00
Matt Hamil
2bb91a6740
Updated README ( #3567 )
...
Changed wording in the Web Support section of README to reflect priority for previous 1.0 release.
2018-02-22 21:52:09 -08:00
Brent Vatne
ffa3a92534
First crack at publish from circle ( #3574 )
...
* First crack at publish from circle
* s/publish/deploy
* Update snapshots
* Try installing with yarn
* Nice one
* Shhh
* Comment some things out and add a webhook
* Add proper webhook url and add back build steps
2018-02-22 16:39:41 -08:00
Brent Vatne
6dda8c30a9
Fix colors for card and header border on iOS
2018-02-22 12:58:33 -08:00
Brent Vatne
065fdf61d8
Several improvements to StackNavigation Header ( #3568 )
...
* Refactor to remove unused variables, styles, and outer Animated view
* Style cleanup
* Proof of concept blur background
* Clean it up and add flow interface
* Update snapshots
2018-02-21 18:29:43 -08:00
Brent Vatne
371a714b57
Release 1.1.2
v1.1.2
2018-02-20 16:00:44 -08:00
Ron Arts
1d33b95c5f
Bump react-native-safe-area-view dep to 0.7.0 for react-native-web support ( #3553 )
2018-02-20 15:44:20 -08:00
Mike Grabowski
593bc8a648
Improve Header
performance a bit ( #3556 )
...
* Improve `Header` performance a bit
I have been investigating `<Header />` component performance once again today with `render` cycles in particular. I have observed that during `push` phase, a typical Header in NavigationPlayground re-renders 3 times on iOS and 2 times on Android.
The first time is obvious on both platforms since that's when we add a new scene to an array. Second on iOS was also self-explanatory - we measure title width and other layout parameters in order to provide a better animation.
What got me thinking was the last render cycle that didn't have a clear origin. After digging around I've found it is caused by a `scenes` array changing when transition finishes. What is surprising, it's just the reference to the object that changes, the content (items inside) stay the same.
I have found out that this is caused by `Transitioner` looping through an array of scenes attempting to remove stale scenes. Since scene becomes stale when you `pop` from it, this is obviously a noop when `pushing` a new route. That, obviously, causes an extra render cycle since `filter` produces same, but with a different pointer, object.
* Update Transitioner.js
* Update Transitioner.js
2018-02-20 15:44:10 -08:00
Brent Vatne
174a6e4175
Release 1.1.1
v1.1.1
2018-02-19 18:18:38 -08:00
Brent Vatne
af991e5512
Release 1.1.0
2018-02-19 18:16:23 -08:00
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