diff --git a/FabricTestExample/App.js b/FabricTestExample/App.js index 1b50c3eff6..2aea269a4d 100644 --- a/FabricTestExample/App.js +++ b/FabricTestExample/App.js @@ -94,6 +94,7 @@ import TestScreenAnimation from './src/TestScreenAnimation'; import Test1981 from './src/Test1981'; import Test2008 from './src/Test2008'; import Test2028 from './src/Test2028'; +import Test2048 from './src/Test2048'; import Test2069 from './src/Test2069'; enableFreeze(true); diff --git a/FabricTestExample/src/Test2048.tsx b/FabricTestExample/src/Test2048.tsx new file mode 100644 index 0000000000..e4efdcaf3b --- /dev/null +++ b/FabricTestExample/src/Test2048.tsx @@ -0,0 +1,85 @@ +import React from 'react'; +import { View, Modal, Button, TouchableWithoutFeedback } from 'react-native'; +import { useState } from 'react'; + +import { NavigationContainer, useNavigation } from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; + +type AppStackPages = { + Home: undefined; + Modal: undefined; +}; + +function HomeScreen() { + const navigation = useNavigation(); + const [visible, setVisible] = useState(false); + + return ( + +