refactor: tweak the types

This commit is contained in:
Satyajit Sahoo
2021-05-01 21:30:57 +02:00
parent f48303f036
commit 83242a7bef
15 changed files with 45 additions and 43 deletions

View File

@@ -33,8 +33,8 @@ import {
import { createDrawerNavigator } from '@react-navigation/drawer';
import {
createStackNavigator,
StackScreenProps,
HeaderStyleInterpolators,
StackNavigationProp,
} from '@react-navigation/stack';
import { useReduxDevToolsExtension } from '@react-navigation/devtools';
@@ -304,7 +304,11 @@ export default function App() {
),
}}
>
{({ navigation }: StackScreenProps<RootStackParamList>) => (
{({
navigation,
}: {
navigation: StackNavigationProp<RootStackParamList>;
}) => (
<ScrollView
style={{ backgroundColor: theme.colors.background }}
>