Satyajit Sahoo
d948b926df
chore: release 3.5.2
2020-01-29 14:36:29 +01:00
Harry Yu
80da403c61
fix: fixed Tab/SwitchRouter incorrectly switching children on "ba… ( #74 )
2020-01-29 21:32:17 +08:00
Harry Yu
f9defd5afb
fix: avoid error when updateNextStateHistory called with state
2019-12-12 17:08:41 -08:00
Sébastien Lorber
aeb5682693
fix: update navigation prop invariant for v4 ( #84 )
...
Even if RN v4 use core v3, I find this would make this message less confusing for react-navigation v4 users
2020-01-24 15:45:07 +01:00
Harry Yu
531dc30530
fix: don't pop routeKeyHistory when child handles back action ( #75 )
...
## Motivation
When pressing back in a StackNavigator nested inside the SwitchRouter, the screen would get popped, but the routeKeyHistory of the SwitchRouter gets popped even though the SwitchRouter doesn't handle the back action. This results in the next back action skipping the last opened tab.
## Fix
Before popping the `routeKeyHistory` stack, we check that the history actually changed. I also added a test for this
2019-11-18 04:00:10 -08:00
satyajit.happy
b4a6810235
Revert "wip: removed code block that prevents event dispatch ( #73 )"
...
This reverts commit 115bc778e85ec4e128d32d57fd01784c121e4bfc.
Will come to it later when I have more time.
2019-10-24 15:27:58 +02:00
michizhou
f3fdd161e4
wip: removed code block that prevents event dispatch ( #73 )
2019-10-24 08:28:23 -04:00
Serhii Palash
bd04b85bc9
chore: update "@react-native-community/bob" to the latest version ( #70 )
...
* Update "@react-native-community/bob" dependency to the latest version
This commit fixes the bug with not possible to install "@react-navigation/core" using GitHub repo url on Windows. It's a common use case when you work with fork of this original repo and use its url as dependency in your package.json.
Corresponding commit in "@react-native-community/bob"
88c879c83f (diff-e5d6ed39d4bcfdb44ace83a35d62c1a5) .
It was released in v0.4.1
* Update yarn.lock file with new "@react-native-community/bob" dependency version
2019-09-16 14:33:43 +03:00
Ben Salili-James
363c8b5d9f
refactor: add types to action creators/invariant ( #65 )
...
* refactor: add types to `NavigationActions`
* refactor: add types to `invariant`
* refactor: add types to `getNavigationActionCreators`
* Update invariant.ts
2019-09-16 12:21:32 +01:00
Sébastien Lorber
513d5d4d8a
tests: refactor SwitchRouter tests ( #34 )
...
* add test:dev for dev test workflow, which should rather not lint/build and trigger pretest
* refactor tests to use closure based helper instead of class
* refactor SwitchRouter tests with router stateful helpers to improve tests readability
* simplify matcher
* better initialRoute backBehavior test by using a non-default routeName
* minor fix
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com >
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com >
* Update src/routers/__tests__/routerTestHelper.js
Co-Authored-By: slorber <slorber@users.noreply.github.com >
* revert bad merge stuff
* revert bad merge stuff
* fix tests
2019-09-16 13:18:22 +02:00
satyajit.happy
2528421656
chore: release 3.5.1
2019-09-14 15:47:57 +02:00
satyajit.happy
a6872b900a
fix: don't keep descriptors for routes that have been removed
2019-09-14 15:25:00 +02:00
satyajit.happy
b5b7cb91b2
fix: fix regression updating route object on navigation
2019-09-14 15:18:54 +02:00
Brent Vatne
8d49ee2771
feat: add theme support
2019-08-22 17:46:03 -07:00
Tanner
5b1a8fed60
feat: support string array for uriPrefix ( #66 )
2019-08-19 20:19:12 -06:00
Brent Vatne
8ac44e6bf8
Release 3.4.2
2019-05-21 23:50:35 +02:00
Janic Duplessis
7dc8819280
docs: Add comment to getScreen fix ( #63 )
2019-05-21 18:02:13 -04:00
Janic Duplessis
720f943fcf
fix: getScreen getting called for each route on init ( #62 )
2019-05-21 17:47:50 -04:00
Brent Vatne
eff177e443
Update README
2019-05-16 10:54:56 -07:00
satyajit.happy
e76a721eaa
chore: release 3.4.1
2019-04-25 10:55:30 +02:00
satyajit.happy
d80418a2ec
fix: use compiled files for react native. closes #58
2019-04-25 10:54:10 +02:00
satyajit.happy
3edf0ebb81
chore: release 3.4.0
2019-04-23 20:10:26 +02:00
satyajit.happy
6101d7c181
feat: add a JUMP_TO action for switch
...
Add a JUMP_TO action in switch navigator to handle navigation actions explictly instead of the magical NAVIGATE action.
2019-04-20 13:49:49 +02:00
satyajit.happy
b13b5805a5
chore: add missing dep in example
2019-04-17 21:01:11 +02:00
Brent Vatne
c828cb128c
Fix SwitchRouter depending on previous state to be defined when performing navigate
2019-04-16 16:55:06 -07:00
satyajit.happy
a461168493
chore: configure bob and metro
2019-04-17 16:29:20 +02:00
satyajit.happy
85c4ac7608
chore: configure bob
2019-04-17 16:29:20 +02:00
Brent Vatne
141bef365f
Release 3.3.1
2019-04-12 15:50:14 -07:00
Brent Vatne
450ac84dea
Remove react-lifecycles-compat
2019-04-12 15:49:09 -07:00
Brent Vatne
88329e387e
Release 3.3.0
2019-04-10 10:15:30 -07:00
Brent Vatne
443235e719
Fix withNavigationFocus initial event by moving subscriptions to mount
2019-04-02 14:14:20 +02:00
Satyajit Sahoo
9434cfa418
fix: drop custom history logic for isFirstRouteInParent ( #52 )
...
As the naming suggests, this checks if route is the first one in parent. So probably doesn't make sense to check history.
2019-04-10 19:14:05 +02:00
Brent Vatne
3a1f1e0df4
Merge pull request #51 from react-navigation/@satya164/can-go-back
...
feat: add a isFirstRouteInParent method to navigation object
2019-04-10 10:00:35 -07:00
Brent Vatne
47514546cb
Merge pull request #49 from matthargett/remove-react-create-context
...
Remove create-react-context to shrink bundle size impact
2019-03-15 12:10:15 -07:00
Brent Vatne
bd92c55f2d
Release 3.2.0
2019-03-13 15:17:32 -07:00
Evan Bacon
7769428269
Update Webpack / Babel config
...
* Added module path in package.json
* Marked as having no side-effects
* Disable commonjs on build
2019-03-09 01:17:47 -08:00
Brent Vatne
12f719f50b
Merge pull request #48 from react-navigation/@satya164/fix-build
...
chore: use tsc only for decalartions
2019-03-11 10:40:16 -07:00
Matt Hargett
72fc3bae4f
Remove react-lifecycles-compat to reduce bundle size impact. - Also bump React, React Native, and babel devDependencies
2019-03-01 16:35:26 -08:00
Brent Vatne
daf37aecff
Merge pull request #44 from serhiipalash/master
...
Set default value “null” for “key” property in RESET action
2019-03-08 12:20:28 -08:00
Brent Vatne
5e5f7142af
Merge pull request #36 from slorber/backbehavior-examples
...
Add switch backbehavior examples
2019-02-20 12:17:53 -08:00
Brent Vatne
aa6e25099d
Release 3.1.1
2019-02-08 18:01:35 -08:00
Brent Vatne
2da2310988
Add more tabs to make it easy to play with backBehavior
2019-02-08 18:01:16 -08:00
Pontus Abrahamsson
4f79a705e5
fix: remove console.log ( #32 )
2019-02-09 14:56:00 +01:00
Brent Vatne
75c968caae
Merge pull request #31 from slorber/switch-back-behavior
...
handle new SwitchRouter history back behaviors
2019-02-08 17:50:06 -08:00
Brent Vatne
f66f23e7e7
Fix silly lint error
2019-02-04 18:02:23 -08:00
Brent Vatne
a6dfe5f0b8
Add a proper development workflow
2019-02-04 17:52:19 -08:00
Brent Vatne
f35c3c2513
Merge pull request #30 from bySabi/master
...
prevent onRef callback be called twice on withNavigationFocus Components
2019-01-28 13:20:35 -08:00
Brent Vatne
baf5a90dd0
Lock create-react-context to 0.2.2 and release 3.0.2
2018-12-11 11:49:21 -08:00
Brent Vatne
051bc39804
Release 3.0.1
2018-12-03 16:07:03 -08:00
Brent Vatne
78d8548f31
Merge pull request #25 from rimzici/master
...
Do not clear navigation child from cache while transitioning
2018-12-02 12:55:33 -08:00