I am building react-native app without using any framework like expo and other. I am trying to create splash screen inside react navigation without using any npm package and other library so my question is: how can i achieve this?
const StackNavigation = (props) => {
return (
<Stack.Navigator initialRouteName="Splash" >
<Stack.Screen name="Home" component={HomeScreen} options={({ navigation, route }) =>
({
headerLeft: props => (
<Icon
name='rowing'
color='#00aced'
onPress={() => navigation.openDrawer()}
/>
)
})} />
<Stack.Screen name="Post" component={PostScreen} />
<Stack.Screen name="Splash" component={SplashScreen} options={{headerShown: false}}/>
</Stack.Navigator>
);
}