-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathApp.tsx
29 lines (25 loc) · 889 Bytes
/
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
import React, {useEffect} from 'react';
import {NativeBaseProvider} from '@gluestack-ui/themed-native-base';
import 'react-native-gesture-handler';
import {NavigationContainer} from "@react-navigation/native";
import {StatusBar} from 'react-native';
import {MainNavigator} from "./src/router/MainNavigator";
import 'react-native-reanimated'
import * as NavigationBar from "expo-navigation-bar";
import Toast from "react-native-toast-message";
import {toastConfig} from "./src/components/config/ToastConfig";
export default function App() {
useEffect(() => {
StatusBar.setHidden(true);
NavigationBar.setBackgroundColorAsync("black")
NavigationBar.setVisibilityAsync("hidden");
})
return (
<NativeBaseProvider>
<NavigationContainer>
<MainNavigator/>
<Toast config={toastConfig}/>
</NavigationContainer>
</NativeBaseProvider>
);
};