Error: `createStackNavigator()` has been moved to `react-navigation-stack`. See https://reactnavigation.org/docs/stack-navigator.html for more details. code example
Example 1: create stack navigator has been moved to react-navigation-stack
npm i react-navigation-stack //or yarn add react-navigation-stack
Example 2: create stack navigator has been moved to react-navigation-stack
import { createStackNavigator } from 'react-navigation-stack'