79202038

Date: 2024-11-19 03:51:12
Score: 0.5
Natty:
Report link

I use this for expo-router, this solution is page specific

const Login = () => {

    const navigation = useNavigation();

    useEffect(() => {
        navigation.setOptions({ headerShown: false });
    }, [navigation]);

    return (
        // code here
    )
}

Source: https://docs.expo.dev/router/advanced/stack/#statically-configure-route-options

Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mominur Rahman