const Root Navigator=create StackNavigator(
{
Splash:Splash,
MainScreen:MainScreen
},{
initialRouteName: 'Splash',
}
class App extends Component{
render(){
return(
<View>
<Root Navigator/>
</View>
)
}
}