-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (36 loc) · 1.02 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import "react-native-gesture-handler";
import React from "react";
import { StatusBar } from "react-native";
import Navigation from "./src/services/navigation";
import { isAndroid } from "@freakycoder/react-native-helpers";
import AnimatedSplash from "react-native-animated-splash-screen";
console.disableYellowBox = true;
const App = () => {
const [isLoaded, setIsLoaded] = React.useState(false);
React.useEffect(() => {
StatusBar.setBarStyle("dark-content");
if (isAndroid) {
StatusBar.setBackgroundColor("rgba(0,0,0,0)");
StatusBar.setTranslucent(true);
}
setTimeout(() => {
setIsLoaded(true);
}, 1350);
}, []);
return (
<>
<AnimatedSplash
logoWidth={300}
logoHeight={300}
logoImage={null}
isLoaded={isLoaded}
backgroundColor={null}
imageBackgroundResizeMode="cover"
imageBackgroundSource={require("./src/assets/splash/splash.png")}
>
<Navigation />
</AnimatedSplash>
</>
);
};
export default App;