Commit Graph

130 Commits

Author SHA1 Message Date
Satyajit Sahoo
f34ec46111 chore: publish
- react-navigation-animated-switch@0.5.12
 - @react-navigation/core@3.7.6
 - react-navigation-drawer@2.4.13
 - react-navigation-material-bottom-tabs@2.2.12
 - @react-navigation/native@3.7.13
 - react-navigation@4.3.9
 - react-navigation-stack@2.4.0
 - react-navigation-tabs@2.8.13
2020-05-01 01:45:52 +02:00
linzera
e09906a423 fix: change old docUrl to new docUrl due v5 2020-04-30 16:57:36 +02:00
Satyajit Sahoo
720d1f970d chore: publish
- react-navigation-animated-switch@0.5.10
 - @react-navigation/core@3.7.5
 - react-navigation-drawer@2.4.11
 - react-navigation-material-bottom-tabs@2.2.10
 - @react-navigation/native@3.7.11
 - react-navigation@4.3.7
 - react-navigation-stack@2.3.11
 - react-navigation-tabs@2.8.11
2020-04-02 12:30:56 +02:00
Satyajit Sahoo
66a4dbccd8 fix: emit refocus for child navigators 2020-04-02 12:29:54 +02:00
Satyajit Sahoo
7925f0c8a3 chore: publish
- react-navigation-animated-switch@0.5.9
 - @react-navigation/core@3.7.4
 - react-navigation-drawer@2.4.10
 - react-navigation-material-bottom-tabs@2.2.9
 - @react-navigation/native@3.7.10
 - react-navigation@4.3.6
 - react-navigation-stack@2.3.10
 - react-navigation-tabs@2.8.10
2020-03-31 18:19:11 +02:00
Satyajit Sahoo
3bec1c964a fix: remove isTransitioning from SwitchRouter state 2020-03-31 17:38:42 +02:00
osdnk
a7e0c193cd chore: publish
- react-navigation-animated-switch@0.5.8
 - @react-navigation/core@3.7.3
 - react-navigation-drawer@2.4.9
 - react-navigation-material-bottom-tabs@2.2.8
 - @react-navigation/native@3.7.9
 - react-navigation@4.3.5
 - react-navigation-stack@2.3.9
 - react-navigation-tabs@2.8.9
2020-03-28 22:34:14 +01:00
Satyajit Sahoo
ac98c0a668 fix: always emit didFocus/didBlur for root navigator 2020-03-28 17:20:33 +01:00
Satyajit Sahoo
14a6538cc8 fix: emit didFocus and didBlur events based on parent's transition 2020-03-28 16:04:06 +01:00
Satyajit Sahoo
c9313a1419 chore: publish
- react-navigation-animated-switch@0.5.7
 - @react-navigation/core@3.7.2
 - react-navigation-drawer@2.4.8
 - react-navigation-material-bottom-tabs@2.2.7
 - @react-navigation/native@3.7.8
 - react-navigation@4.3.4
 - react-navigation-stack@2.3.8
 - react-navigation-tabs@2.8.8
2020-03-28 00:45:14 +01:00
Satyajit Sahoo
cd08338186 fix: rework focus and blur events to make them more reliable
closes #4867, #6187, #6451, #7628, #7749
2020-03-27 21:28:30 +01:00
Satyajit Sahoo
d2433f0ab8 fix: don't handle prune if there's only one route
This was preventing the action from bubbling up which would prevent the screen from getting removed
2020-03-27 20:09:52 +01:00
Satyajit Sahoo
7656b35ee8 chore: publish
- react-navigation-animated-switch@0.5.6
 - @react-navigation/core@3.7.1
 - react-navigation-drawer@2.4.7
 - react-navigation-material-bottom-tabs@2.2.6
 - @react-navigation/native@3.7.7
 - react-navigation@4.3.3
 - react-navigation-stack@2.3.5
 - react-navigation-tabs@2.8.7
2020-03-23 00:09:22 +01:00
Satyajit Sahoo
a929933bde chore: update prettier 2020-03-23 00:02:47 +01:00
Satyajit Sahoo
911d6bb2f4 chore: explicitely set tag for core and native packages 2020-03-22 17:08:01 +01:00
Satyajit Sahoo
c0fb54b5a2 chore: publish
- react-navigation-animated-switch@0.5.3
 - @react-navigation/core@3.7.0
 - react-navigation-drawer@2.4.3
 - react-navigation-material-bottom-tabs@2.2.3
 - @react-navigation/native@3.7.4
 - react-navigation@4.3.0
 - react-navigation-stack@2.3.0
 - react-navigation-tabs@2.8.3
2020-03-16 17:14:15 +01:00
Satyajit Sahoo
5927f4287f feat: add prune option to pop action to match v5 behaviour 2020-03-16 16:37:20 +01:00
Satyajit Sahoo
37a664b433 chore: upgrade depenendecies 2020-03-16 15:24:11 +01:00
Satyajit Sahoo
77db2eaf62 chore: publish
- react-navigation-animated-switch@0.5.1
 - @react-navigation/core@3.6.1
 - react-navigation-drawer@2.4.1
 - react-navigation-material-bottom-tabs@2.2.1
 - @react-navigation/native@3.7.3
 - react-navigation@4.2.1
 - react-navigation-stack@2.2.1
 - react-navigation-tabs@2.8.1
2020-02-24 20:00:33 +01:00
Satyajit Sahoo
fc24ebd16c fix: fix file extensions. closes #7246 2020-02-24 19:59:25 +01:00
Satyajit Sahoo
88fbfaca4d chore: publish
- react-navigation-playground@0.1.0
 - react-navigation-animated-switch@0.5.0
 - @react-navigation/core@3.6.0
 - react-navigation-drawer@2.4.0
 - react-navigation-material-bottom-tabs@2.2.0
 - @react-navigation/native@3.7.0
 - react-navigation@4.2.0
 - react-navigation-stack@2.2.0
 - react-navigation-tabs@2.8.0
2020-02-24 17:34:34 +01:00
Satyajit Sahoo
72e8160537 chore: migrate to monorepo 2020-02-24 17:27:10 +01:00
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