Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit d7559a6

Browse files
committed
fix: set proper type for screenProps in ScreenComponent
1 parent bd1f8ad commit d7559a6

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"react-native-paper": "^2.2.0",
2121
"react-native-reanimated": "~1.1.0",
2222
"react-native-webview": "~5.12.0",
23-
"react-navigation": "^4.0.4",
23+
"react-navigation": "^4.0.7",
2424
"react-navigation-stack": "^1.7.3"
2525
},
2626
"devDependencies": {

example/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -908,10 +908,10 @@
908908
xcode "^2.0.0"
909909
xmldoc "^0.4.0"
910910

911-
"@react-navigation/core@^3.5.0":
912-
version "3.5.0"
913-
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.0.tgz#73d1a12448e2bd71855e0080b95a7f51ede0cd9e"
914-
integrity sha512-NLm24lA51R8o8c+iFnwtN9elqRzm4OJ8f1qPBCUNIYW1sb8M5yCD53vRP0fRcPFpr/6Xzs2TJMsWnnebwFp0Rw==
911+
"@react-navigation/core@^3.5.1":
912+
version "3.5.1"
913+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"
914+
integrity sha512-q7NyhWVYOhVIWqL2GZKa6G78YarXaVTTtOlSDkvy4ZIggo40wZzamlnrJRvsaQX46gsgw45FAWb5SriHh8o7eA==
915915
dependencies:
916916
hoist-non-react-statics "^3.3.0"
917917
path-to-regexp "^1.7.0"
@@ -4440,12 +4440,12 @@ react-navigation-stack@^1.7.3:
44404440
dependencies:
44414441
prop-types "^15.7.2"
44424442

4443-
react-navigation@^4.0.4:
4444-
version "4.0.4"
4445-
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.4.tgz#afa43c7183891d38708cf57f1d4394fed1d4c2ad"
4446-
integrity sha512-MZeVkYkFTKZobhrXMV3Hgeg0HHeokCrYsbxActVfO0n6zfzm0/La6EiC2mIHiwOymvb1ZygyFf90vryLUMEBNA==
4443+
react-navigation@^4.0.7:
4444+
version "4.0.7"
4445+
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.7.tgz#cc7ce334fef009242494d623e50e9cf79eb63ddd"
4446+
integrity sha512-0tTWanq870Hyr1VGHuj98+myRHNQnKgpRgjgzhAwVuLShyPIB9OnoLGIwIcqEdxgxGo+JMFmIGg8KCr7xapfgg==
44474447
dependencies:
4448-
"@react-navigation/core" "^3.5.0"
4448+
"@react-navigation/core" "^3.5.1"
44494449
"@react-navigation/native" "^3.6.2"
44504450

44514451
react-proxy@^1.1.7:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"react-native-reanimated": "^1.2.0",
6969
"react-native-screens": "^1.0.0-alpha.23",
7070
"react-native-testing-library": "^1.7.0",
71-
"react-navigation": "^4.0.4",
71+
"react-navigation": "^4.0.7",
7272
"react-test-renderer": "16.8.6",
7373
"release-it": "^12.3.6",
7474
"typescript": "^3.4.5"
@@ -80,7 +80,7 @@
8080
"react-native-gesture-handler": "^1.0.12",
8181
"react-native-reanimated": "^1.0.0",
8282
"react-native-screens": "^1.0.0 || ^1.0.0-alpha",
83-
"react-navigation": "^4.0.4"
83+
"react-navigation": "^4.0.7"
8484
},
8585
"jest": {
8686
"preset": "react-native",

src/types.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ export type NavigationDrawerScreenComponent<
119119
> = React.ComponentType<NavigationDrawerScreenProps<Params, ScreenProps>> & {
120120
navigationOptions?: NavigationScreenConfig<
121121
NavigationDrawerOptions,
122-
NavigationDrawerProp<NavigationRoute, Params>
122+
NavigationDrawerProp<NavigationRoute, Params>,
123+
ScreenProps
123124
>;
124125
};
125126

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,10 @@
10821082
xcode "^2.0.0"
10831083
xmldoc "^0.4.0"
10841084

1085-
"@react-navigation/core@^3.5.0":
1086-
version "3.5.0"
1087-
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.0.tgz#73d1a12448e2bd71855e0080b95a7f51ede0cd9e"
1088-
integrity sha512-NLm24lA51R8o8c+iFnwtN9elqRzm4OJ8f1qPBCUNIYW1sb8M5yCD53vRP0fRcPFpr/6Xzs2TJMsWnnebwFp0Rw==
1085+
"@react-navigation/core@^3.5.1":
1086+
version "3.5.1"
1087+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"
1088+
integrity sha512-q7NyhWVYOhVIWqL2GZKa6G78YarXaVTTtOlSDkvy4ZIggo40wZzamlnrJRvsaQX46gsgw45FAWb5SriHh8o7eA==
10891089
dependencies:
10901090
hoist-non-react-statics "^3.3.0"
10911091
path-to-regexp "^1.7.0"
@@ -7349,12 +7349,12 @@ react-native@~0.59.10:
73497349
xmldoc "^0.4.0"
73507350
yargs "^9.0.0"
73517351

7352-
react-navigation@^4.0.4:
7353-
version "4.0.4"
7354-
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.4.tgz#afa43c7183891d38708cf57f1d4394fed1d4c2ad"
7355-
integrity sha512-MZeVkYkFTKZobhrXMV3Hgeg0HHeokCrYsbxActVfO0n6zfzm0/La6EiC2mIHiwOymvb1ZygyFf90vryLUMEBNA==
7352+
react-navigation@^4.0.7:
7353+
version "4.0.7"
7354+
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.7.tgz#cc7ce334fef009242494d623e50e9cf79eb63ddd"
7355+
integrity sha512-0tTWanq870Hyr1VGHuj98+myRHNQnKgpRgjgzhAwVuLShyPIB9OnoLGIwIcqEdxgxGo+JMFmIGg8KCr7xapfgg==
73567356
dependencies:
7357-
"@react-navigation/core" "^3.5.0"
7357+
"@react-navigation/core" "^3.5.1"
73587358
"@react-navigation/native" "^3.6.2"
73597359

73607360
react-proxy@^1.1.7:

0 commit comments

Comments
 (0)