fix: set proper type for screenProps in ScreenComponent

This commit is contained in:
satyajit.happy
2019-09-22 00:47:33 +02:00
parent 52829e86b0
commit 26cd8511b5
5 changed files with 23 additions and 22 deletions

View File

@@ -20,7 +20,7 @@
"react-native-paper": "^2.2.0",
"react-native-reanimated": "~1.1.0",
"react-native-webview": "~5.12.0",
"react-navigation": "^4.0.4",
"react-navigation": "^4.0.7",
"react-navigation-stack": "^1.7.3"
},
"devDependencies": {

View File

@@ -908,10 +908,10 @@
xcode "^2.0.0"
xmldoc "^0.4.0"
"@react-navigation/core@^3.5.0":
version "3.5.0"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.0.tgz#73d1a12448e2bd71855e0080b95a7f51ede0cd9e"
integrity sha512-NLm24lA51R8o8c+iFnwtN9elqRzm4OJ8f1qPBCUNIYW1sb8M5yCD53vRP0fRcPFpr/6Xzs2TJMsWnnebwFp0Rw==
"@react-navigation/core@^3.5.1":
version "3.5.1"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"
integrity sha512-q7NyhWVYOhVIWqL2GZKa6G78YarXaVTTtOlSDkvy4ZIggo40wZzamlnrJRvsaQX46gsgw45FAWb5SriHh8o7eA==
dependencies:
hoist-non-react-statics "^3.3.0"
path-to-regexp "^1.7.0"
@@ -4440,12 +4440,12 @@ react-navigation-stack@^1.7.3:
dependencies:
prop-types "^15.7.2"
react-navigation@^4.0.4:
version "4.0.4"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.4.tgz#afa43c7183891d38708cf57f1d4394fed1d4c2ad"
integrity sha512-MZeVkYkFTKZobhrXMV3Hgeg0HHeokCrYsbxActVfO0n6zfzm0/La6EiC2mIHiwOymvb1ZygyFf90vryLUMEBNA==
react-navigation@^4.0.7:
version "4.0.7"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.7.tgz#cc7ce334fef009242494d623e50e9cf79eb63ddd"
integrity sha512-0tTWanq870Hyr1VGHuj98+myRHNQnKgpRgjgzhAwVuLShyPIB9OnoLGIwIcqEdxgxGo+JMFmIGg8KCr7xapfgg==
dependencies:
"@react-navigation/core" "^3.5.0"
"@react-navigation/core" "^3.5.1"
"@react-navigation/native" "^3.6.2"
react-proxy@^1.1.7:

View File

@@ -68,7 +68,7 @@
"react-native-reanimated": "^1.2.0",
"react-native-screens": "^1.0.0-alpha.23",
"react-native-testing-library": "^1.7.0",
"react-navigation": "^4.0.4",
"react-navigation": "^4.0.7",
"react-test-renderer": "16.8.6",
"release-it": "^12.3.6",
"typescript": "^3.4.5"
@@ -80,7 +80,7 @@
"react-native-gesture-handler": "^1.0.12",
"react-native-reanimated": "^1.0.0",
"react-native-screens": "^1.0.0 || ^1.0.0-alpha",
"react-navigation": "^4.0.4"
"react-navigation": "^4.0.7"
},
"jest": {
"preset": "react-native",

View File

@@ -119,7 +119,8 @@ export type NavigationDrawerScreenComponent<
> = React.ComponentType<NavigationDrawerScreenProps<Params, ScreenProps>> & {
navigationOptions?: NavigationScreenConfig<
NavigationDrawerOptions,
NavigationDrawerProp<NavigationRoute, Params>
NavigationDrawerProp<NavigationRoute, Params>,
ScreenProps
>;
};

View File

@@ -1082,10 +1082,10 @@
xcode "^2.0.0"
xmldoc "^0.4.0"
"@react-navigation/core@^3.5.0":
version "3.5.0"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.0.tgz#73d1a12448e2bd71855e0080b95a7f51ede0cd9e"
integrity sha512-NLm24lA51R8o8c+iFnwtN9elqRzm4OJ8f1qPBCUNIYW1sb8M5yCD53vRP0fRcPFpr/6Xzs2TJMsWnnebwFp0Rw==
"@react-navigation/core@^3.5.1":
version "3.5.1"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"
integrity sha512-q7NyhWVYOhVIWqL2GZKa6G78YarXaVTTtOlSDkvy4ZIggo40wZzamlnrJRvsaQX46gsgw45FAWb5SriHh8o7eA==
dependencies:
hoist-non-react-statics "^3.3.0"
path-to-regexp "^1.7.0"
@@ -7349,12 +7349,12 @@ react-native@~0.59.10:
xmldoc "^0.4.0"
yargs "^9.0.0"
react-navigation@^4.0.4:
version "4.0.4"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.4.tgz#afa43c7183891d38708cf57f1d4394fed1d4c2ad"
integrity sha512-MZeVkYkFTKZobhrXMV3Hgeg0HHeokCrYsbxActVfO0n6zfzm0/La6EiC2mIHiwOymvb1ZygyFf90vryLUMEBNA==
react-navigation@^4.0.7:
version "4.0.7"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.7.tgz#cc7ce334fef009242494d623e50e9cf79eb63ddd"
integrity sha512-0tTWanq870Hyr1VGHuj98+myRHNQnKgpRgjgzhAwVuLShyPIB9OnoLGIwIcqEdxgxGo+JMFmIGg8KCr7xapfgg==
dependencies:
"@react-navigation/core" "^3.5.0"
"@react-navigation/core" "^3.5.1"
"@react-navigation/native" "^3.6.2"
react-proxy@^1.1.7: