-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (23 loc) · 822 Bytes
/
App.js
File metadata and controls
25 lines (23 loc) · 822 Bytes
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
import 'react-native-gesture-handler';
import React from 'react';
import {View} from 'react-native';
import * as SplashScreen from 'expo-splash-screen';
import { StateProvider } from './StateProvider';
import reducer, { initialState} from './Reducer';
import StatusSaver from './StatusSaver'
import * as NavigationBar from 'expo-navigation-bar';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
NavigationBar.setBackgroundColorAsync('#00D426')
NavigationBar.setButtonStyleAsync("light")
SplashScreen.preventAutoHideAsync();
export default function App() {
return (
<StateProvider initialState={initialState} reducer={reducer}>
<GestureHandlerRootView style={{
flex: 1,
}}>
<StatusSaver/>
</GestureHandlerRootView>
</StateProvider>
);
}