Commit Graph

2225 Commits

Author SHA1 Message Date
Janic Duplessis
79359b32c2 Fix transition between 2 screens with no header (#3939) 2018-04-09 15:32:27 -04:00
Janic Duplessis
785af36335 Use Header.HEIGHT instead of measuring to avoid flicker (#3940) 2018-04-09 15:31:43 -04:00
Janic Duplessis
cc4d75f1a8 Fix header transition when mode is set to screen (#3927) 2018-04-09 14:22:51 -04:00
Brent Vatne
0191edf83a Release 2.0.0-rc.1 2018-04-06 15:14:32 -07:00
Eric Vicenti
d4e9aa32db drawer router key (#3925) 2018-04-06 15:13:55 -07:00
emision
3a89f44318 add isFocused helper definition (#3912) 2018-04-06 22:43:51 +03:00
Brent Vatne
14408b5a11 Fix typo in SwitchRouter 2018-04-06 12:42:42 -07:00
Brent Vatne
a9e4146c50 Fix stackConfig typo 2018-04-06 12:39:44 -07:00
Eric Vicenti
daad6d4d53 custom action creators api (#3923) 2018-04-06 12:12:39 -07:00
Brent Vatne
2b5ec70055 Release 2.0.0-beta.10 2018-04-05 14:46:33 -07:00
Brent Vatne
ac735f6d7d Prevent double application of navigationOptions function when using RouteName: ScreenName route config 2018-04-05 14:45:41 -07:00
Brent Vatne
3ca8f6ff97 Release 2.0.0-beta.9 2018-04-05 12:09:55 -07:00
Eric Vicenti
122fd7f08a Immediate transition fix, avoid stale render (#3901) 2018-04-05 11:35:16 -07:00
Eric Vicenti
4b4709d925 container initialization fix (#3899) 2018-04-05 11:29:59 -07:00
Eric Vicenti
ef0ab25cf4 fix header back (#3900) 2018-04-05 11:29:15 -07:00
Eric Vicenti
e2a239bf80 avoid unnecessary navigation completion dispatches (#3902) 2018-04-05 11:27:32 -07:00
Eric Vicenti
b29b46fe8a no more component will mount (#3903) 2018-04-05 11:25:26 -07:00
Eric Vicenti
7919b33faa Enhance replace action creator (#3906) 2018-04-05 11:25:04 -07:00
Brent Vatne
068fcf8b2d Release 2.0.0-beta.8 2018-04-04 19:34:09 -07:00
Brent Vatne
4ea9963052 Bump react-navigation-tabs dependency 2018-04-04 19:33:51 -07:00
Brent Vatne
67d6f8837f Update NavigationPlayground dependencies 2018-04-04 19:33:01 -07:00
Brent Vatne
e469f16564 Release 2.0.0-beta.7 2018-04-04 18:37:41 -07:00
Brent Vatne
2a04e1ba6a Fix isFocused and example 2018-04-04 18:37:08 -07:00
Brent Vatne
0e46af0a0f Update react-navigation-tabs 2018-04-04 18:17:57 -07:00
Gaëtan Renaudeau
175a246543 Update Flowtype to support navigation.navigate({}) (#3843) 2018-03-26 23:17:36 +02:00
Brent Vatne
d57fb6e6e0 Fix refactoring errors 2018-03-25 19:04:15 -07:00
Eric Vicenti
b74178d447 Actions creators overhaul (#3619) 2018-03-25 21:31:59 -04:00
Brent Vatne
3a7eec3315 Release 2.0.0-beta.6 2018-03-25 12:33:30 -07:00
Brent Vatne
2431e1c9a1 Warn when users have multiple stateful navigation containers (#3819)
* First pass at warning when users explicitly render nested navigators

* Clean up tests around warnings

* Update comment

* Update comment again
2018-03-25 12:33:11 -07:00
Gianfrancø Palumbo
5d7a264393 fix(redux example readme): link to doc (#3828) 2018-03-25 20:49:22 +03:00
Eric Vicenti
b41d268572 withNavigation improvement (#3834)
The navigation prop should also pass through, and be prioritized over context because it is more explicit

This also fixes an incorrect warning/invariant
2018-03-25 13:49:09 -04:00
Adam Miskiewicz
598f18688c Smoothly transition header visibility in Stack
This closes #2732 (which also happens to be the top issue on canny.io).
2018-03-25 10:27:59 -07:00
Adam Miskiewicz
33c9962952 Update react-native-scripts in NavigationPlayground (#3820)
We were pretty far behind in react-native-script versions for the playground, so I updated them.

Test Plan:

Run `yarn`.
2018-03-23 12:25:53 -07:00
Tom Klaver
b66a677aeb Fix broken link behind PRs Welcome badge (#3824) 2018-03-23 16:23:10 +01:00
Brent Vatne
f616fe99d1 Release 2.0.0-beta.5 - Update react-navigation-tabs 2018-03-22 20:52:47 -07:00
Brent Vatne
247a33dbfb Release 2.0.0-beta.4 2018-03-22 19:43:47 -07:00
Eric Vicenti
229c9327b7 State persistence (#3716)
Adds a new state persistence mechanisms to all of the navigators via createNavigationContainer

    There are two new props that you can provide to a navigation container: `storageKey` and `renderLoading`.

    `storageKey` is the string key to be used with AsyncStorage while saving and persisting navigation state. To disable persistence, set to null.

    `renderLoading` allows you to render something while the navigator re-hydrates its state and loads its initial URL. By default this returns null, but Expo users will want to render a <AppLoading /> component for smooth app launches

    There is also functionality in this PR to observe errors that come from re-hydrating state, and gracefully recover by dispatching an init action.

    Also this revises the init action to *reset* the navigation state, rather than preserve the previous state.
2018-03-22 22:42:37 -04:00
Eric Vicenti
2419309e04 Implement paths on SwitchRouter (#3806)
* Fix paths overriding in SwitchRouter
2018-03-22 22:41:27 -04:00
Brent Vatne
72b491afb0 Release 2.0.0-beta.3 2018-03-19 16:53:34 -04:00
Brent Vatne
6612f0d2cf Add switch example 2018-03-19 16:52:12 -04:00
Eric Vicenti
0de40c6464 StackRouter to return null on idempotent navigation (#3793)
This new behavior indicates that the action has been handled, but the state has not changed.
2018-03-19 16:46:57 -04:00
Brent Vatne
64e467e465 Release 2.0.0-beta.2 2018-03-19 13:06:49 -04:00
Brent Vatne
9acb411c4d Bump version to 2.0.0-beta.1 2018-03-19 01:36:37 -04:00
Brent Vatne
e05ce7ffa6 Release 2.0.0-beta.0 2018-03-19 00:13:27 -04:00
Brent Vatne
3613ddba82 Release 2.0.7 2018-03-18 22:22:26 -04:00
Eric Vicenti
c888217357 Improve path matching for SwitchRouter and empty paths (#3784) 2018-03-18 22:10:15 -04:00
Brent Vatne
ea1194b823 Add react-native-tabs as export from react-navigation 2018-03-18 17:50:02 -04:00
Eric Vicenti
b6d3f75bf9 Temporarily disable broken test in NavigationPlayground 2018-03-18 12:22:56 -04:00
Brent Vatne
6345902381 Release 2.0.0-alpha.6 2018-03-17 16:27:52 -04:00
Brent Vatne
3e1a722d29 Fix push action -- regressed when making navigate "less pushy" 2018-03-17 16:27:19 -04:00