This commit is contained in:
Marc Rousavy
2021-02-19 18:53:08 +01:00
parent c13c46f388
commit cf157cb299
8 changed files with 289 additions and 3 deletions

View File

@@ -48,11 +48,21 @@ export const Splash: NavigationFunctionComponent = ({ componentId }) => {
useEffect(() => {
if (cameraPermissionStatus === 'authorized' && microphonePermissionStatus === 'authorized') {
Navigation.push(componentId, {
component: { name: 'Home' }
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
name: 'Home'
}
}
]
}
}
})
}
}, []);
}, [cameraPermissionStatus, microphonePermissionStatus, componentId]);
return (
<View style={styles.container}>