Skip to content

Commit 37870c5

Browse files
committed
Add some useful comment to Test2282
1 parent 838c5bf commit 37870c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/src/tests/Test2282.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,17 @@ function ExtraNestedFlatlist(props: Partial<FlatListProps<number>>) {
135135

136136
const Stack = createNativeStackNavigator();
137137

138+
/**
139+
* You can use either the App component with `ListScreen` or `ListScreenSimplified`,
140+
* of `AppSimple` component which has little to no navigation and attempts to reproduce the issue
141+
*/
142+
138143
export default function App(): React.JSX.Element {
139144
return (
140145
<NavigationContainer>
141146
<Stack.Navigator screenOptions={{ animation: 'slide_from_right' }}>
142147
<Stack.Screen name="Home" component={Home} />
143-
<Stack.Screen name="List" component={ListScreenSimplified}/>
148+
<Stack.Screen name="List" component={ListScreenSimplified}/> {/* <- Exchange here for ListScreen for more complex case */}
144149
</Stack.Navigator>
145150
</NavigationContainer>
146151
);

0 commit comments

Comments
 (0)