Sunday, January 28, 2024
HomeiOS Developmentios - Native stack navigator working in Expo Go, however it's exhibiting...

ios – Native stack navigator working in Expo Go, however it’s exhibiting a clean display on Apple Testflight


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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments