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
Nicolas Charpentier
ebe5f3e22d
Optimize images ( #4251 )
2018-05-23 19:54:23 -04:00
Ashoat Tevosyan
6d8bce7bc5
[examples] Update ReduxExample ( #4267 )
...
Using two new utils:
1. `createNavigationPropConstructor`, which is now preferred over `createReduxBoundAddListener`.
2. `initializeListeners`, which is necessary to trigger the event listeners with the initial state.
2018-05-23 13:20:14 -04:00
Ashoat Tevosyan
f18d8c8204
[flow] Make StackRouter action creators optional and add DrawerRouter ones ( #4257 )
...
This will force all Flow users to do runtime assertions if they want to use these action creators. Open to any better solutions.
2018-05-23 13:18:35 -04:00
Ashoat Tevosyan
4dd8a9451c
[flow] Fix tabBarOnPress type for react-navigation@2.0 ( #4256 )
2018-05-23 13:18:11 -04:00
Ashoat Tevosyan
562585b848
[flow] Fixes for v2 libdef ( #4230 )
...
* [flow] Remove "any" type from NavigationComponent
"any" cripples the typechecker, so it's best to avoid. It was introduced in #3392 , but I don't think the intention was to keep it there.
* [flow] Remove `any` type from `createNavigator` return
And use objects with spread sub-types instead of unions for `React$ComponentType` type param
2018-05-23 13:17:45 -04:00
Brent Vatne
ac49d597b5
Release 2.0.2
2018-05-21 17:56:24 -07:00
Brent Vatne
2270aadd7a
Don't warn about multiple navigation containers on Android This really is not ideal but it's an upstream bug on react-native Android that we can't work around. Users may experience other unexpected behavior as a result of this upstream bug.
2018-05-21 17:55:05 -07:00
Eric Vicenti
7d13a1469b
Update playground yarn lockfile
2018-05-12 10:48:45 -07:00
Eric Vicenti
d028d980db
Cache panResponder in StackView ( #4183 )
...
* fix swipe gesture bug
* panresponder as instance prop
2018-05-09 17:36:57 -07:00
Steven Kabbes
141a3a1c0a
Remove unused code addNavigationHelpers ( #4179 )
2018-05-09 16:53:06 -05:00
Brent Vatne
4c01e178cf
Release 2.0.1
2018-05-08 17:45:02 -07:00
Eric Vicenti
4a845a3a77
Fix dispatch implementation ( #4168 )
...
Previously we had been emiting an action event with a null state when the router handles the action by returning null from getStateForAction.
- Fixes the case of null state getting emitted
- Renames a few things for clarity
- Refactors conditionals to read easier
- Comments to explain intent
2018-05-08 17:41:08 -07:00
Brent Vatne
04072560da
Release 2.0.0
2018-05-07 13:47:13 -07:00
Brent Vatne
6f80d22320
Release 2.0.0-rc.14
2018-05-07 13:03:21 -07:00
Brent Vatne
963b567c12
Update drawer example
2018-05-07 13:01:22 -07:00
Eric Vicenti
98fd650c35
Navigation Action Helpers at root ( #4151 )
2018-05-07 12:56:35 -07:00
Brent Vatne
6c093979d7
Release candidate lucky number 13
2018-05-07 11:54:50 -07:00
Brent Vatne
34cde827cf
Only blur input when index changes on transition start ( Fixes #4148 )
2018-05-07 11:47:56 -07:00
Brent Vatne
a3aa513742
Release 2.0.0-rc.12
2018-05-07 11:14:03 -07:00
Brent Vatne
f1205e02f7
Update react-navigation-deprecated-tab-navigator. Closes #4147
2018-05-07 11:13:34 -07:00
Brent Vatne
638ac6cb44
Release 2.0.0-rc.11
2018-05-06 13:41:53 -07:00