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

Commit

Permalink
fix: set proper type for screenProps in ScreenComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Sep 21, 2019
1 parent f27327c commit f63c971
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-native-safe-area-view": "0.13.1",
"react-native-screens": "1.0.0-alpha.22",
"react-native-tab-view": "^2.10.0",
"react-navigation": "^4.0.5",
"react-navigation": "^4.0.7",
"react-navigation-stack": "^1.7.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4594,10 +4594,10 @@ react-navigation-stack@^1.7.3:
dependencies:
prop-types "^15.7.2"

react-navigation@^4.0.5:
version "4.0.6"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.6.tgz#6e0c4324c8eb314f31b510a43cbf7cea9410f246"
integrity sha512-DEhAcuiPI+I8pEgKStVrhDjZA5bc/1Nc+ByKWPn1pVWJCRHs+i+vJ6D2KWZCUtpzKCSm/yVPyUab4hOCg8L+Ww==
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.1"
"@react-navigation/native" "^3.6.2"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"react-native": "~0.57.1",
"react-native-gesture-handler": "^1.4.1",
"react-native-reanimated": "^1.2.0",
"react-navigation": "^4.0.5",
"react-navigation": "^4.0.7",
"react-test-renderer": "16.5.0",
"release-it": "^10.3.1",
"typescript": "^3.5.2"
Expand All @@ -85,7 +85,7 @@
"react-native-gesture-handler": "^1.0.0",
"react-native-reanimated": "^1.0.0-alpha",
"react-native-screens": "^1.0.0 || ^1.0.0-alpha",
"react-navigation": "^4.0.5"
"react-navigation": "^4.0.7"
},
"husky": {
"hooks": {
Expand Down
6 changes: 4 additions & 2 deletions src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ export type NavigationMaterialTabScreenComponent<
> = React.ComponentType<NavigationTabScreenProps<Params, ScreenProps>> & {
navigationOptions?: NavigationScreenConfig<
NavigationMaterialTabOptions,
NavigationTabProp<NavigationRoute, Params>
NavigationTabProp<NavigationRoute, Params>,
ScreenProps
>;
};

Expand All @@ -217,7 +218,8 @@ export type NavigationBottomTabScreenComponent<
> = React.ComponentType<NavigationTabScreenProps<Params, ScreenProps>> & {
navigationOptions?: NavigationScreenConfig<
NavigationBottomTabOptions,
NavigationTabProp<NavigationRoute, Params>
NavigationTabProp<NavigationRoute, Params>,
ScreenProps
>;
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7672,10 +7672,10 @@ react-native@~0.57.1:
xmldoc "^0.4.0"
yargs "^9.0.0"

react-navigation@^4.0.5:
version "4.0.6"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-4.0.6.tgz#6e0c4324c8eb314f31b510a43cbf7cea9410f246"
integrity sha512-DEhAcuiPI+I8pEgKStVrhDjZA5bc/1Nc+ByKWPn1pVWJCRHs+i+vJ6D2KWZCUtpzKCSm/yVPyUab4hOCg8L+Ww==
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.1"
"@react-navigation/native" "^3.6.2"
Expand Down

0 comments on commit f63c971

Please sign in to comment.