diff --git a/apps/src/tests/Test432.tsx b/apps/src/tests/Test432.tsx index 5a0843dbc0..8274bfd299 100644 --- a/apps/src/tests/Test432.tsx +++ b/apps/src/tests/Test432.tsx @@ -13,18 +13,34 @@ type RootStackParamList = { }; type RootStackScreenProps = NativeStackScreenProps; + const HomeScreen = ({ navigation }: RootStackScreenProps<'Home'>) => { - const showSettings = useCallback(() => { - navigation.navigate('Settings'); - }, [navigation]); + const [x, setX] = React.useState(false); + React.useEffect(() => { + navigation.setOptions({ + headerBackVisible: !x, + headerRight: x + ? () => ( + + ) + : () => ( + + ), + }); + }, [navigation, x]); + return ( -