create stack navigator has been moved to react-navigation-stack

JavaScript
npm i react-navigation-stack   //or yarn add react-navigation-stack
import { createStackNavigator } from 'react-navigation-stack'

Source

Also in JavaScript: