import React from 'react' ; import { createStackNavigator } from '@react-navigation/stack' ; import { Splash } from '../screens' ; import TabNavigator from './TabNavigator' ; const MainStack = createStackNavigator ( ) ; const MainNavigator = ( ) => { const { Navigator , Screen } = MainStack ; return ( < Navigator headerMode = "none" > < Screen name = "Splash" component = { Splash } / > < Screen name = "Tabs" component = { TabNavigator } / > < /Navigator>); } ; export default MainNavigator ;