Skip to content

Commit 5be8f30

Browse files
authored
Upgrade react-navigation to last 3.x version (#76)
1 parent 60e52b4 commit 5be8f30

File tree

3 files changed

+59
-70
lines changed

3 files changed

+59
-70
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The boilerplate contains:
4646
- [Redux](https://redux.js.org/) (v4.0.1) to help manage state
4747
- [Redux Persist](https://github.com/rt2zz/redux-persist) (v5.10.0) to persist the Redux state
4848
- [Redux Sagas](https://redux-saga.js.org) (v1.0.2) to separate side-effects and logic from state and UI logic
49-
- [React Navigation](https://reactnavigation.org/) (v3.6.0) with a [`NavigationService`](App/Services/NavigationService.js) to handle routing and navigation in the app, with a splash screen setup by default
49+
- [React Navigation](https://reactnavigation.org/) (v3.11.2) with a [`NavigationService`](App/Services/NavigationService.js) to handle routing and navigation in the app, with a splash screen setup by default
5050
- [reduxsauce](https://github.com/infinitered/reduxsauce) (v1.0.1) to facilitate using Redux
5151
- [axios](https://github.com/axios/axios) to make API calls (v0.19.0)
5252
- [prettier](https://prettier.io/) and [eslint](https://eslint.org/) preconfigured for React Native

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react": "16.8.6",
1919
"react-native": "0.60.5",
2020
"react-native-gesture-handler": "^1.3.0",
21-
"react-navigation": "^3.6.0",
21+
"react-navigation": "^3.11.2",
2222
"react-redux": "^6.0.1",
2323
"redux": "^4.0.1",
2424
"redux-persist": "^5.10.0",

yarn.lock

Lines changed: 57 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,24 +1081,23 @@
10811081
eslint-plugin-react-native "3.6.0"
10821082
prettier "1.16.4"
10831083

1084-
"@react-navigation/core@3.2.0":
1085-
version "3.2.0"
1086-
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.2.0.tgz#329dfe54f305ee22ed750d51cb09c5d18562d56f"
1087-
integrity sha512-MXjTqqPFbifXGlws4hSye9Ax4dEM2OvV7VMEJOJU9TbzQjyewi59Cjplbt8pYQ5ummvkKeRS2FlQYIygNR5oCQ==
1084+
"@react-navigation/core@~3.5.0":
1085+
version "3.5.1"
1086+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"
1087+
integrity sha512-q7NyhWVYOhVIWqL2GZKa6G78YarXaVTTtOlSDkvy4ZIggo40wZzamlnrJRvsaQX46gsgw45FAWb5SriHh8o7eA==
10881088
dependencies:
1089-
create-react-context "0.2.2"
1090-
hoist-non-react-statics "^2.5.5"
1089+
hoist-non-react-statics "^3.3.0"
10911090
path-to-regexp "^1.7.0"
1092-
query-string "^6.2.0"
1093-
react-is "^16.6.3"
1091+
query-string "^6.4.2"
1092+
react-is "^16.8.6"
10941093

1095-
"@react-navigation/native@~3.3.0":
1096-
version "3.3.0"
1097-
resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-3.3.0.tgz#def7a94ef17581a404a3de2a3200f986e999dac1"
1098-
integrity sha512-w/+2B0qX441BpNkYb5QoPY8+Q4Q18adGTahVpc6o8Juj6odAxyIJ2RozXk7dCpN/w0dz4B+5ggqMKHVniE6K7w==
1094+
"@react-navigation/native@~3.6.1":
1095+
version "3.6.2"
1096+
resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-3.6.2.tgz#3634697b6350cc5189657ae4551f2d52b57fbbf0"
1097+
integrity sha512-Cybeou6N82ZeRmgnGlu+wzlV3z5BZQR2dmYaNFV1TNLUGHqtvv8E7oNw9uYcz9Ox5LFbiX+FdNTn2d6ZPlK0kg==
10991098
dependencies:
11001099
hoist-non-react-statics "^3.0.1"
1101-
react-native-safe-area-view "^0.13.0"
1100+
react-native-safe-area-view "^0.14.1"
11021101
react-native-screens "^1.0.0 || ^1.0.0-alpha"
11031102

11041103
"@redux-saga/core@^1.0.2":
@@ -2183,14 +2182,6 @@ create-react-class@^15.6.3:
21832182
loose-envify "^1.3.1"
21842183
object-assign "^4.1.1"
21852184

2186-
2187-
version "0.2.2"
2188-
resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.2.tgz#9836542f9aaa22868cd7d4a6f82667df38019dca"
2189-
integrity sha512-KkpaLARMhsTsgp0d2NA/R94F/eDLbhXERdIq3LvX2biCAXcDvHYoOqHfWCHf1+OLj+HKBotLG3KqaOOf+C1C+A==
2190-
dependencies:
2191-
fbjs "^0.8.0"
2192-
gud "^1.0.0"
2193-
21942185
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
21952186
version "5.1.0"
21962187
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -3044,7 +3035,7 @@ fbjs-scripts@^1.1.0:
30443035
semver "^5.1.0"
30453036
through2 "^2.0.0"
30463037

3047-
fbjs@^0.8.0, fbjs@^0.8.9:
3038+
fbjs@^0.8.9:
30483039
version "0.8.17"
30493040
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
30503041
integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=
@@ -3346,11 +3337,6 @@ growly@^1.3.0:
33463337
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
33473338
integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=
33483339

3349-
gud@^1.0.0:
3350-
version "1.0.0"
3351-
resolved "https://registry.yarnpkg.com/gud/-/gud-1.0.0.tgz#a489581b17e6a70beca9abe3ae57de7a499852c0"
3352-
integrity sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw==
3353-
33543340
handlebars@^4.1.0:
33553341
version "4.1.1"
33563342
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.1.tgz#6e4e41c18ebe7719ae4d38e5aca3d32fa3dd23d3"
@@ -3438,7 +3424,7 @@ hermesvm@^0.1.0:
34383424
resolved "https://registry.yarnpkg.com/hermesvm/-/hermesvm-0.1.1.tgz#bd1df92b4dc504e261c23df34864daf24b844d03"
34393425
integrity sha512-EosSDeUqTTGvlc9vQiy5Y/9GBlucEyo6lYuxg/FnukHCD/CP3NYeDAGV54TyZ19FgSqMEoPgOH9cyxvv8epQ1g==
34403426

3441-
hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0, hoist-non-react-statics@^2.5.5:
3427+
hoist-non-react-statics@^2.3.1, hoist-non-react-statics@^2.5.0:
34423428
version "2.5.5"
34433429
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
34443430
integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==
@@ -5942,10 +5928,10 @@ qs@~6.5.2:
59425928
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
59435929
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
59445930

5945-
query-string@^6.2.0:
5946-
version "6.4.2"
5947-
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.4.2.tgz#8be1dbd105306aebf86022144f575a29d516b713"
5948-
integrity sha512-DfJqAen17LfLA3rQ+H5S4uXphrF+ANU1lT2ijds4V/Tj4gZxA3gx5/tg1bz7kYCmwna7LyJNCYqO7jNRzo3aLw==
5931+
query-string@^6.4.2:
5932+
version "6.8.3"
5933+
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.8.3.tgz#fd9fb7ffb068b79062b43383685611ee47777d4b"
5934+
integrity sha512-llcxWccnyaWlODe7A9hRjkvdCKamEKTh+wH8ITdTc3OhchaqUZteiSCX/2ablWHVrkVIe04dntnaZJ7BdyW0lQ==
59495935
dependencies:
59505936
decode-uri-component "^0.2.0"
59515937
split-on-first "^1.0.0"
@@ -5991,7 +5977,7 @@ react-devtools-core@^3.6.1:
59915977
shell-quote "^1.6.1"
59925978
ws "^3.3.1"
59935979

5994-
react-is@^16.6.3, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.2, react-is@^16.8.4:
5980+
react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.2, react-is@^16.8.4:
59955981
version "16.8.6"
59965982
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
59975983
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
@@ -6001,11 +5987,6 @@ react-is@^16.8.6:
60015987
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb"
60025988
integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==
60035989

6004-
react-lifecycles-compat@^3.0.4:
6005-
version "3.0.4"
6006-
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
6007-
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
6008-
60095990
react-native-gesture-handler@^1.3.0:
60105991
version "1.3.0"
60115992
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.3.0.tgz#d0386f565928ccc1849537f03f2e37fd5f6ad43f"
@@ -6026,10 +6007,10 @@ react-native-rename@^2.4.1:
60266007
node-replace "^0.3.3"
60276008
shelljs "^0.7.7"
60286009

6029-
react-native-safe-area-view@^0.13.0:
6030-
version "0.13.1"
6031-
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.13.1.tgz#834bbb6d22f76a7ff07de56725ee5667ba1386b0"
6032-
integrity sha512-d/pu2866jApSwLtK/xWAvMXZkNTIQcFrjjbcTATBrmIfFNnu8TNFUcMRFpfJ+eOn5nmx7uGmDvs9B53Ft7JGpQ==
6010+
react-native-safe-area-view@^0.14.1:
6011+
version "0.14.8"
6012+
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.14.8.tgz#ef33c46ff8164ae77acad48c3039ec9c34873e5b"
6013+
integrity sha512-MtRSIcZNstxv87Jet+UsPhEd1tpGe8cVskDXlP657x6rHpSrbrc+y13ZNXrwAgGNNhqQNX7UJT68ZIq//ZRmvw==
60336014
dependencies:
60346015
hoist-non-react-statics "^2.3.1"
60356016

@@ -6038,13 +6019,20 @@ react-native-safe-area-view@^0.13.0:
60386019
resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-1.0.0-alpha.22.tgz#7a120377b52aa9bbb94d0b8541a014026be9289b"
60396020
integrity sha512-kSyAt0AeVU6N7ZonfV6dP6iZF8B7Bce+tk3eujXhzBGsLg0VSLnU7uE9VqJF0xdQrHR91ZjGgVMieo/8df9KTA==
60406021

6041-
react-native-tab-view@^1.0.0, react-native-tab-view@^1.2.0:
6022+
react-native-tab-view@^1.2.0:
60426023
version "1.3.4"
60436024
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-1.3.4.tgz#63fc3eb09652651d0ea0e016cff0f3a5e535f4de"
60446025
integrity sha512-iufNROTPr4+Z/IKijlp5faEANiDBWxhpgx9NSCg3esZ+HN5+UtFwB0xkn4XpNRqCvbzeBkgKMRJL3V6kr5NhWg==
60456026
dependencies:
60466027
prop-types "^15.6.1"
60476028

6029+
react-native-tab-view@^1.4.1:
6030+
version "1.4.1"
6031+
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-1.4.1.tgz#f113cd87485808f0c991abec937f70fa380478b9"
6032+
integrity sha512-Bke8KkDcDhvB/z0AS7MnQKMD2p6Kwfc1rSKlMOvg9CC5CnClQ2QEnhPSbwegKDYhUkBI92iH/BYy7hNSm5kbUQ==
6033+
dependencies:
6034+
prop-types "^15.6.1"
6035+
60486036
60496037
version "0.60.5"
60506038
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.60.5.tgz#3c1d9c06a0fbab9807220b6acac09488d39186ee"
@@ -6079,38 +6067,39 @@ [email protected]:
60796067
stacktrace-parser "^0.1.3"
60806068
whatwg-fetch "^3.0.0"
60816069

6082-
react-navigation-drawer@1.3.0:
6083-
version "1.3.0"
6084-
resolved "https://registry.yarnpkg.com/react-navigation-drawer/-/react-navigation-drawer-1.3.0.tgz#0bb8022003b36e919e3ae55394a81384f36a14f0"
6085-
integrity sha512-IDOaMseBeH1PutxRXkqDZTboZ/1mXVd4991JetsE5VmYvedmeh6z1AtBaCJu2rwRdV4U9K2I0xMyjwI0Nijqjg==
6070+
react-navigation-drawer@~1.4.0:
6071+
version "1.4.0"
6072+
resolved "https://registry.yarnpkg.com/react-navigation-drawer/-/react-navigation-drawer-1.4.0.tgz#70f3dd83e3da9cd4ea6e2739526502c823d466b9"
6073+
integrity sha512-ZyWBozcjB2aZ7vwCALv90cYA2NpDjM+WALaiYRshvPvue8l7cqynePbHK8GhlMGyJDwZqp4MxQmu8u1XAKp3Bw==
60866074
dependencies:
60876075
react-native-tab-view "^1.2.0"
60886076

6089-
6090-
version "1.2.0"
6091-
resolved "https://registry.yarnpkg.com/react-navigation-stack/-/react-navigation-stack-1.2.0.tgz#d1d76d28df75e55302c67b078479f95bd4559d2f"
6092-
integrity sha512-QVnFhCFZoY7wwYIHhmWDwd1JoUX8C858oX4FKwqmJetrkeQU7Oh32z0kBip+fs49v3pZfjPnNJwekeAidFsRlg==
6077+
react-navigation-stack@~1.5.0:
6078+
version "1.5.5"
6079+
resolved "https://registry.yarnpkg.com/react-navigation-stack/-/react-navigation-stack-1.5.5.tgz#0b3cd98b7845a51d9ce9d7d678e9e3b9ed010bc3"
6080+
integrity sha512-qMhOhmUmyPNfFGWMbwv5flrNVsFU4JZSBWnONSgVGK4KWGW8DbobXBi4i4sBAC9Kg8EqJK0qyWcxnkMJJtfMWA==
6081+
dependencies:
6082+
prop-types "^15.7.2"
60936083

6094-
react-navigation-tabs@1.0.2:
6095-
version "1.0.2"
6096-
resolved "https://registry.yarnpkg.com/react-navigation-tabs/-/react-navigation-tabs-1.0.2.tgz#cc6c61db0c61054388ef6f726a8ffc183d6095b5"
6097-
integrity sha512-ffWPVdo+L0GLbQlLAzH7ITYqh9V9NdqT/juj8QtESH5/2yUqfvqTxQoSowvFIrtiIHHFH6tLoQy1sZZciTxmeg==
6084+
react-navigation-tabs@~1.2.0:
6085+
version "1.2.0"
6086+
resolved "https://registry.yarnpkg.com/react-navigation-tabs/-/react-navigation-tabs-1.2.0.tgz#602c147029bb4f1c569b26479ddba534fe3ebb19"
6087+
integrity sha512-I6vq3XX4ub9KhWQzcrggznls+2Z2C6w2ro46vokDGGvJ02CBpQRar7J0ETV29Ot5AJY67HucNUmZdH3yDFckmQ==
60986088
dependencies:
60996089
hoist-non-react-statics "^2.5.0"
61006090
prop-types "^15.6.1"
6101-
react-lifecycles-compat "^3.0.4"
6102-
react-native-tab-view "^1.0.0"
6103-
6104-
react-navigation@^3.6.0:
6105-
version "3.6.0"
6106-
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-3.6.0.tgz#ef0b9ab833bb74c321f596288ba0d3e69bb517f8"
6107-
integrity sha512-fv8zlK12lEUddOFYcEK+LdlQ4nShgBs7JxzrAIhoEgW14umqyh1DWccsIKdBPYeUx9qjXAbM2n2rKAA9+mvb4g==
6108-
dependencies:
6109-
"@react-navigation/core" "3.2.0"
6110-
"@react-navigation/native" "~3.3.0"
6111-
react-navigation-drawer "1.3.0"
6112-
react-navigation-stack "1.2.0"
6113-
react-navigation-tabs "1.0.2"
6091+
react-native-tab-view "^1.4.1"
6092+
6093+
react-navigation@^3.11.2:
6094+
version "3.12.1"
6095+
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-3.12.1.tgz#f86246e65030ab16160e9cbfa8585f3822450e38"
6096+
integrity sha512-WLjQis/A40cIMpFlw4o26nSLN+CvrZp8MGvJoL5K5H7DMZ/TdwgPa/Nm2sAQA27Hw7hOohQGj+diyxFRZi89Iw==
6097+
dependencies:
6098+
"@react-navigation/core" "~3.5.0"
6099+
"@react-navigation/native" "~3.6.1"
6100+
react-navigation-drawer "~1.4.0"
6101+
react-navigation-stack "~1.5.0"
6102+
react-navigation-tabs "~1.2.0"
61146103

61156104
react-proxy@^1.1.7:
61166105
version "1.1.8"

0 commit comments

Comments
 (0)