From 1f204d17c05bc0eb802030c38c7d5af01e24c2fd Mon Sep 17 00:00:00 2001 From: alduzy Date: Wed, 7 Aug 2024 16:10:16 +0200 Subject: [PATCH 1/5] added repro --- apps/App.tsx | 8 +++---- apps/src/tests/Test2282.tsx | 42 +++++++++++++++++++++++++++++++++++++ apps/src/tests/index.ts | 1 + 3 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 apps/src/tests/Test2282.tsx diff --git a/apps/App.tsx b/apps/App.tsx index 23a9af9c45..1b84e1995f 100644 --- a/apps/App.tsx +++ b/apps/App.tsx @@ -1,11 +1,11 @@ import React from 'react'; import { enableFreeze } from 'react-native-screens'; -import Example from './Example'; -// import * as Test from './src/tests'; +// import Example from './Example'; +import * as Test from './src/tests'; enableFreeze(true); export default function App() { - return ; - // return ; + // return ; + return ; } diff --git a/apps/src/tests/Test2282.tsx b/apps/src/tests/Test2282.tsx new file mode 100644 index 0000000000..c5f98cf42f --- /dev/null +++ b/apps/src/tests/Test2282.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { FlatList, Button, Text } from 'react-native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import { NavigationContainer } from '@react-navigation/native'; + +const Stack = createNativeStackNavigator(); + +const List = () => { + return ( + { + return {item}; + }} + data={[1, 2, 3]} + /> + ); +}; + +const First = ({ navigation }: any) => ( + <> + +