Relative Content

Tag Archive for react-nativeroutesexpo

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 […]