Skip to content

Commit

Permalink
Add some useful comment to Test2282
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Dec 30, 2024
1 parent a43e140 commit 94bf5f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/src/tests/Test2282.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,17 @@ function ExtraNestedFlatlist(props: Partial<FlatListProps<number>>) {

const Stack = createNativeStackNavigator();

/**
* You can use either the App component with `ListScreen` or `ListScreenSimplified`,
* of `AppSimple` component which has little to no navigation and attempts to reproduce the issue
*/

export default function App(): React.JSX.Element {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ animation: 'slide_from_right' }}>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="List" component={ListScreenSimplified}/>
<Stack.Screen name="List" component={ListScreenSimplified}/> {/* <- Exchange here for ListScreen for more complex case */}
</Stack.Navigator>
</NavigationContainer>
);
Expand Down

0 comments on commit 94bf5f2

Please sign in to comment.