`createStackNavigator()` has been moved to `react-navigation-stack`. 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'