diff --git a/TestsExample/App.js b/TestsExample/App.js index 8e04dd995a..e81f44c3e9 100644 --- a/TestsExample/App.js +++ b/TestsExample/App.js @@ -76,6 +76,7 @@ import Test1227 from './src/Test1227'; import Test1228 from './src/Test1228'; import Test1259 from './src/Test1259'; import Test1260 from './src/Test1260'; +import Test1299 from './src/Test1299'; enableFreeze(true); diff --git a/TestsExample/src/Test1299.tsx b/TestsExample/src/Test1299.tsx new file mode 100644 index 0000000000..5104f4da86 --- /dev/null +++ b/TestsExample/src/Test1299.tsx @@ -0,0 +1,62 @@ +import * as React from 'react'; +import { View, StyleSheet, Button } from 'react-native'; +import { createNativeStackNavigator } from 'react-native-screens/native-stack'; +import { NavigationContainer, useNavigation } from '@react-navigation/native'; + +export const Modal1 = React.memo(() => { + return ; +}); + +export const Modal2 = React.memo(() => { + return ( + + ); +}); +export const MainScreen = React.memo(() => { + const navigation = useNavigation(); + return ( + +