INNER CODE UNIT · JavaScript
onLayoutRootView
creativetimofficial/material-kit-react-native · App.js:69
const onLayoutRootView = useCallback(async () => {
if (appIsReady) {
await SplashScreen.hideAsync();
}
}, [appIsReady]);
if (!appIsReady) {
return null;
}
return (
<NavigationContainer onReady={onLayoutRootView}>
<GalioProvider theme={materialTheme}>
<Block flex>
{Platform.OS === "ios" && <StatusBar barStyle="default" />}
<Screens />
</Block>
</GalioProvider>