Commit Graph

2235 Commits

Author SHA1 Message Date
Brent Vatne
3d4960e1ed Return result of dispatch from action helpers 2018-06-08 14:33:01 -07:00
Eric Vicenti
af90697ef1 Refactor redo, child navigation to navigation prop (#4453) 2018-06-08 14:20:07 -07:00
Brent Vatne
ac53028af6 Release 2.2.5 2018-06-08 09:40:39 -07:00
ensecoz
853092b70d extract correct property for onTransitionEnd (#4459) 2018-06-08 23:35:36 +07:00
Tom Klaver
74669c76b5 throw readable error when wrong navigation prop is passed (#4455)
* add warning when passing wrong navigation prop: https://github.com/react-navigation/react-navigation/issues/3598

* add test for throwing when passing wrong navigation prop

* wrong nav prop error: update snapshots, throw => throw new, update docs reference url
2018-06-08 18:31:05 +02:00
Arthur Levoyer
67a4115df4 Add missing tests about DeepLinking (#4451)
* Fix #1950 (Deep link not working when nesting have more than two levels.)

* Fix test
2018-06-07 20:37:57 +02:00
Brent Vatne
2da3c276ec Release 2.2.4 2018-06-07 11:33:14 -07:00
Brent Vatne
885762720d Re-compute options when screenProps change 2018-06-07 11:31:31 -07:00
Brent Vatne
c5f7ba75f7 Release 2.2.3 2018-06-06 21:13:00 -07:00
Brent Vatne
7d2f740c0f Add some logs to NavigationPlayground around helper dispatch return value This is a poor substitute for tests 2018-06-06 21:12:18 -07:00
Brent Vatne
518fc0df5c Return the result of dispatch from helpers. Fixes #4445 2018-06-06 21:01:51 -07:00
Brent Vatne
be9dd85b1b Release 2.2.2 2018-06-06 14:34:59 -07:00
Brent Vatne
a5703d30fd Bump react-navigation-drawer 2018-06-06 14:34:42 -07:00
Brent Vatne
9d23f18b76 Release 2.2.1 2018-06-06 13:24:50 -07:00
Brent Vatne
abd66fa0e0 Bump react-navigation-tabs and rebuild yarn.lock 2018-06-06 13:24:29 -07:00
Brent Vatne
52fe023ee2 Revert "Refactor, move child navigation to navigation prop (#4425)"
This reverts commit ba62509ff4.
2018-06-06 13:19:08 -07:00
陈然
9910c74ac5 Change 'React' import writing, Prevent warnings in old version React (#4428) 2018-06-07 03:51:09 +08:00
Eric Vicenti
2935d61412 Refactor, move child navigation to navigation prop (#4425)
* Refactor, move child navigation to navigation prop

This fixes our descriptor caching issue, and unblocks explicit nested navigation options.

As a side effect, the following APIs are introduced:

- navigation.getChildNavigation(routeKey) , which is useful for explicitly getting children config info
- navigation.router, access to the static router

- router.childRouters[routeName] , an optional way to access the children routers directly. If childRouters are not provided in a router, we will fall back on getComponentForRouteName(routeName).router, which is the previous external API for this (although it may be slower because it will require the whole screen component).

* supporting tests and top level actions

* cleanup
2018-06-06 12:50:30 -07:00
Brent Vatne
7147e83e2e Move all drawer code into react-navigation-drawer (#4435)
* Move all drawer code into react-navigation-drawer

* Remove react-native-drawer-layout-polyfill from package.json
2018-06-06 12:11:28 -07:00
Brent Vatne
2b9bb75025 Release 2.2.0 2018-06-05 12:21:09 -07:00
Brent Vatne
43414e4fd5 Bump react-navigation-tabs to latest 2018-06-05 12:20:47 -07:00
Serge Lebedev
8869c6e72e [flow] Fix NavigationScreenComponent's navigationOptions (#4317) 2018-06-06 01:19:12 +06:00
Rodrigo Bermúdez Schettino
1176a32134 Use consistent naming in README (#4427)
Use the same casing (camel case) as in the README's title for the License section.
2018-06-05 19:55:20 +02:00
Eric Vicenti
efb4df6d90 Fix getCustomActionCreators in drawer navigator 2018-06-05 10:51:05 -07:00
Brent Vatne
2d0d79643c Release 2.1.0 2018-06-04 14:04:00 -07:00
Rodrigo Bermúdez Schettino
9747bf269c Update deprecated StackNavigator usage (#4389)
Use createStackNavigator instead.
2018-06-04 22:59:55 +02:00
Ashoat Tevosyan
c938751c16 [flow] Update NavigationActions and introduce StackActions and DrawerActions (#4345) 2018-06-05 03:58:14 +07:00
James Bechet
e3326aaa56 fix swipe to go back by providing the index (#4409) 2018-06-04 16:55:26 -04:00
Brent Vatne
e93cb4c95d Cache descriptors in createNavigator (#4424) 2018-06-04 13:54:09 -07:00
Eric Vicenti
79461618c6 Fix stack router state change without isTransitioning change (#4368) 2018-06-04 12:47:40 -07:00
Eric Vicenti
f6933ac401 Transitioner: Fix instantaneous transitions (#4404)
* Transitioner: Fix instantaneous transitions

The transitioner will always perform an animation on state change. Instead we should check if the navigation state is requesting a transition with isTransitioning. If not, we follow a similar codepath to transitioning, without any animation.

* Update .eslintrc
2018-06-04 12:46:08 -07:00
Eric Vicenti
be81351160 Fix race condition in DrawerView (#4392) 2018-06-03 13:35:55 -07:00
Eric Vicenti
09bc4c3ba9 Fix drawer router logic to close drawer (#4394) 2018-06-03 13:35:30 -07:00
Brent Vatne
5eae87259a Temporarily stop running flow on navigation playground due to internal react-native flow errors 2018-06-01 15:02:12 -07:00
Hunkyo Jung
06b78f3a56 Pass getCustomActionCreators to StackRouter (#4366) 2018-06-01 11:21:11 +09:00
Brent Vatne
accae258be Update tab snapshots 2018-05-31 13:53:00 -07:00
Brent Vatne
889f33f0be Disable react/no-deprecated to pass CI without breaking old versions of React 2018-05-31 13:47:28 -07:00
Brent Vatne
c617c50434 Release 2.0.4 2018-05-25 23:05:54 -07:00
Ashoat Tevosyan
aae5099c86 Export getNavigationActionCreators (#4258)
* Export getNavigationActionCreators

`react-navigation-redux-helpers` generally needs to duplicate whatever `createNavigationCreator` does. As of `react-navigation@2.0`, that includes using `getNavigationActionCreators` to construct the top-level `NavigationScreenProp`.

This PR isn't strictly needed, as it's possible to import from the file directly. But that's a brittle approach, and not particularly discoverable for anybody attempting to use a "non-stateful" navigator with their state management library of choice.

* Further refinements after writing the new helper

* Final refinement of NavigationScreenProp's relationship with _DefaultActionCreators

* Resolve merge conflicts
2018-05-26 01:59:11 -04:00
Brent Vatne
f6e3a93788 Fix Stacks over Tabs example 2018-05-25 16:07:55 -07:00
Louis Lagrange
f0e61e4d1a Fix drawer router initial state (#4219)
* Fix drawer router initial state

* Add test

* Be concise
2018-05-26 01:01:53 +02:00
Sébastien BARBIER
47ffe430ca Apply drawerlockmode from screen options to DrawerLayout component (#4202)
Fix #4201
2018-05-26 00:50:39 +02:00
Louis Lagrange
987ee7ec54 Export missing Drawer components (#4221) 2018-05-26 00:49:33 +02:00
Brent Vatne
b266160406 Bump some versions 2018-05-25 14:30:03 -07:00
Andrei Xavier de Oliveira Calazans
f4d5a45471 fix(create-nav-container): pass up error on catch (#4298) 2018-05-25 19:13:18 -03:00
Louis Lagrange
7e374425ce Remove obsolete DrawerScreen (#4222) 2018-05-25 23:45:45 +02:00
Louis Lagrange
e88c528464 [Web] Fix header height margin (#4206) 2018-05-25 23:44:46 +02:00
Sébastien Lorber
e7ed83c1b6 Add CircleCI Badge to README (#4318)
Displaying a badge is helpful for users but also contributors (for example to know why my upstream-rebased PR is not passing tests)
2018-05-25 23:41:27 +02:00
Sébastien Lorber
e583e55180 Fix Codecov link -> react-community vs react-navigation (#4319) 2018-05-25 23:39:51 +02:00
Louis Lagrange
40eb0e1eac Fix NavigatorContainer test (fixes CI) (#4327) 2018-05-24 17:43:58 +02:00