diff --git a/apps/src/tests/Test2332.tsx b/apps/src/tests/Test2332.tsx new file mode 100644 index 0000000000..9728439194 --- /dev/null +++ b/apps/src/tests/Test2332.tsx @@ -0,0 +1,86 @@ +/** + * + * IMPORTANT! READ BEFORE TESTING! + * Remember to switch windowSoftInputMode to `adjustPan` in AndroidManifest.xml file. + * + */ + +import React, { useLayoutEffect } from 'react'; +import { NavigationContainer } from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import { useNavigation } from '@react-navigation/native'; +import { Button, Text, TextInput, View } from 'react-native'; +import { NativeStackNavigationProp } from '@react-navigation/native-stack'; +import { HeaderButton } from '@react-navigation/elements'; +type RootStackNavigatorParamsList = { + Home: undefined; + Details: undefined; +}; +const Stack = createNativeStackNavigator(); +const HomeScreen = () => { + const navigation = + useNavigation>(); + const onHandlePress = () => { + navigation.navigate('Details'); + }; + return ( + + HomeScreen + +