Routing Error in React-Native Latest Version 0.74
import * as React from “react”; import { Button, View } from “react-native”; import { NavigationContainer } from “@react-navigation/native”; import { createNativeStackNavigator } from “@react-navigation/native-stack”; function HomeScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: “center”, justifyContent: “center” }}> <Button title=”Go to Profile” onPress={() => navigation.navigate(“Profile”)} /> </View> ); } function ProfileScreen({ navigation […]
Cloned React Native project doesn’t configure routing properly and open default page
I created React Native project with Expo, define routes using app folder. It opens correctly and displays content. I pushed the changes on Github, cloned it and when tried to run it, it opened the default page:
enter image description here