Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Updated dependencies #10

Merged
merged 1 commit into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import {
Nunito_800ExtraBold,
useFonts,
} from "@expo-google-fonts/nunito";
import AppLoading from "expo-app-loading";
import { NavigationContainer } from "@react-navigation/native";
import Stack from "./src/navigation/Stack";
import Play from "./src/screens/Play";
import Settings from "./src/screens/Settings";
import { gestureHandlerRootHOC } from "react-native-gesture-handler";
import * as SplashScreen from "expo-splash-screen";
import React from "react";

const fonts = {
Nunito_700Bold,
Expand Down Expand Up @@ -48,10 +49,19 @@ export default function App() {

const [fontsLoaded] = useFonts(fonts);

if (!fontsLoaded) return <AppLoading />;
const onLayoutReady = React.useCallback(
async () => await SplashScreen.hideAsync(),
[]
);

React.useEffect(() => {
SplashScreen.preventAutoHideAsync().then();
}, []);

if (!fontsLoaded) return null;

return (
<NavigationContainer>
<NavigationContainer onReady={onLayoutReady}>
<Stack.Navigator
initialRouteName="main"
screenOptions={{
Expand Down
7 changes: 0 additions & 7 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"requireFullScreen": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
Expand All @@ -29,9 +25,6 @@
},
"androidNavigationBar": {
"visible": "immersive"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Loading