diff --git a/apps/src/tests/Test2395.tsx b/apps/src/tests/Test2395.tsx new file mode 100644 index 0000000000..fc8b2a4c83 --- /dev/null +++ b/apps/src/tests/Test2395.tsx @@ -0,0 +1,71 @@ +import * as React from 'react'; +import { FlatList, Pressable, StyleSheet, Text, View } 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 Screen() { + return ( + ( + (pressed ? styles.pressed : undefined)}> + List item {index + 1} + + )} + /> + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + backgroundColor: 'mediumseagreen', + }, + text: { + fontSize: 24, + color: 'black', + padding: 10, + }, + pressed: { + backgroundColor: 'seagreen', + }, +}); diff --git a/apps/src/tests/index.ts b/apps/src/tests/index.ts index 84a901714b..cb516cbdd6 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'; diff --git a/src/components/ScreenStackHeaderConfig.tsx b/src/components/ScreenStackHeaderConfig.tsx index 5890ba9467..f9f4440049 100644 --- a/src/components/ScreenStackHeaderConfig.tsx +++ b/src/components/ScreenStackHeaderConfig.tsx @@ -23,6 +23,7 @@ export function ScreenStackHeaderConfig( ); } @@ -100,8 +101,11 @@ const styles = StyleSheet.create({ flexShrink: 1, }, headerConfig: { - flexDirection: 'row', + position: 'absolute', + top: '-100%', width: '100%', + flexDirection: 'row', justifyContent: 'space-between', + alignItems: 'center', }, });