diff --git a/apps/src/tests/Test2395.tsx b/apps/src/tests/Test2395.tsx new file mode 100644 index 000000000..b1414bd41 --- /dev/null +++ b/apps/src/tests/Test2395.tsx @@ -0,0 +1,98 @@ +import * as React from 'react'; +import { + FlatList, + Image, + Pressable, + StyleSheet, + Text, + View, + ViewProps, +} from 'react-native'; +import { NavigationContainer } from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; + +const Stack = createNativeStackNavigator(); + +export default function App() { + return ( + + + ( + + Right + + ), + headerLeft: () => ( + + Left + + ), + }} + /> + + + ); +} + +function Item({ children, ...props }: ViewProps) { + return ( + + + {children} + + ); +} + +function Screen() { + return ( + ( + (pressed ? styles.pressed : undefined)}> + List item {index + 1} + + )} + /> + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + backgroundColor: 'mediumseagreen', + }, + item: { + flexDirection: 'row', + alignItems: 'center', + padding: 10, + gap: 10, + }, + text: { + fontSize: 24, + color: 'black', + }, + image: { + width: 50, + height: 50, + }, + pressed: { + backgroundColor: 'seagreen', + }, +}); diff --git a/apps/src/tests/index.ts b/apps/src/tests/index.ts index 84a901714..cb516cbdd 100644 --- a/apps/src/tests/index.ts +++ b/apps/src/tests/index.ts @@ -112,6 +112,7 @@ export { default as Test2271 } from './Test2271'; export { default as Test2282 } from './Test2282'; export { default as Test2317 } from './Test2317'; export { default as Test2332 } from './Test2332'; +export { default as Test2395 } from './Test2395'; export { default as TestScreenAnimation } from './TestScreenAnimation'; export { default as TestHeader } from './TestHeader'; export { default as TestHeaderTitle } from './TestHeaderTitle';