I’ve created a naked minimal instance of the difficulty beneath. Once I construct this in Expo Go, I’m able to see the display that states Navigation working...
however as soon as I construct the appliance in expo dev and submit it to Apple Testflight, I can solely see a clean display.
import 'react-native-gesture-handler'; // required dependency for native-stack
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
const MapScreen = () => {
return (
<View type={{ flex: 1, justifyContent: 'heart', alignItems: 'heart' }}>
<Textual content>Navigation working...</Textual content>
</View>
);
}
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Display
title="stackScreen"
element={MapScreen}
initialParams={{ hyperlink: information }}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;
I used to be initially utilizing createStackNavigator
however have realised I needs to be utilizing createNativeStackNavigator
.