Hi,
I am following Mosh course on React Native part2. The example on Navigation is not working with my android emulator. It only shows a blank page and nothing else. Below is the code as from Mosh course:
=============
import React from “react”;
import { Text } from “react-native”;
import { createNativeStackNavigator } from “@react-navigation/native-stack”;
import { NavigationContainer } from “@react-navigation/native”;
import Screen from “./app/components/Screen”;
const Tweets = () => (
Tweets
);
const TweetDetails = () => {
Tweet Details
;
};
const Stack = createNativeStackNavigator();
const StackNavigator = () => {
<Stack.Navigator>
<Stack.Screen name=“Tweets” component={Tweets} />
<Stack.Screen name=“TweetDetails” component={TweetDetails} />
</Stack.Navigator>;
};
export default function App() {
return (
);
}
=============
Does anyone see what may be the problem?
Thanks