Explore Library
Code QuizIntermediate

NavigationContainer Root Wrapper

Find why navigation throws an error about missing container context.

Codejavascript
import { createNativeStackNavigator } from '@react-navigation/native-stack';

const Stack = createNativeStackNavigator();

export default function App() {
  return (
    <Stack.Navigator>
      <Stack.Screen name="Home" component={HomeScreen} />
    </Stack.Navigator>
  );
}

What is the bug in this code?