Explore Library
Code QuizIntermediate

Creating a Stack Navigator

Identify the mistake in how the stack navigator is created.

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

const Stack = createNativeStackNavigator;

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

What is the bug in this code?