-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
54 lines (48 loc) · 1.21 KB
/
App.js
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
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { DataProvider } from './src/provider/DataProvider';
import WholeContainer from './src/container/WholeContainer';
import { createTheme, Text, ThemeProvider } from '@rneui/themed';
import { TextInput } from 'react-native';
import { useEffect } from 'react'; // added by KJR
//import BackgroundTimer from 'react-native-background-timer';
export default App = () => {
// async function getPowerState () {
// const state = await DeviceInfo.getPowerState();
// if(state == 'unplugged') {
// BackgroundTimer.start(10000);
// }
// else{
// BackgroundTimer.stop();
// }
// };
// useEffect(()=>{
// getPowerState();
// },[])
const theme = createTheme({
components: {
Text: {
fontSize: 21
},
TextInput: {
fontSize: 19
}
}
})
return (
<ThemeProvider theme={theme}>
<SafeAreaProvider>
<DataProvider>
<WholeContainer />
</DataProvider>
</SafeAreaProvider>
</ThemeProvider>
)
}