И скинули бы код навигатора, а не экрана где вы жмете goBack
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" mode="modal">
<Stack.Screen
name="Home"
component={HomeScreen}
options={{
headerStyle: {
backgroundColor: '#1b1b1b',
elevation: 0,
shadowColor: 'transparent',
shadowOpacity: 0,
},
headerTintColor: '#351d9e',
headerTransparent: true,
headerShown: false,
}}
/>
<Stack.Screen
name="Details"
component={FilmDetail}
options={{
headerStyle: {
backgroundColor: 'transparent',
elevation: 0,
shadowColor: 'transparent',
shadowOpacity: 0,
},
headerTintColor: '#fff',
headerTransparent: true,
}}
/>
<Stack.Screen
name="CategoryList"
component={CategoryList}
options={{
headerStyle: {
backgroundColor: '#1b1b1b',
elevation: 0,
shadowColor: 'transparent',
shadowOpacity: 0,
},
headerTintColor: '#fff',
headerTitleStyle: {
color: '#fff',
},
headerBackTitleVisible: false,
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}