xxxxxxxxxx
<Stack.Screen
name="Home"
component={HomeActivity}
options={{headerShown: false}}
/>
xxxxxxxxxx
React.useLayoutEffect(() => {
navigation.setOptions({headerShown: false});
}, [navigation]);
xxxxxxxxxx
<Stack.Navigator
initialRouteName="HomeActivity"
screenOptions={{headerShown: false}}
>
<Stack.Screen>
.
</Stack.Screen>
</Stack.Navigator>