-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
56 lines (50 loc) · 1.65 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from 'react';
import {Platform, StatusBar, StyleSheet} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {PaperProvider} from 'react-native-paper';
import {Provider} from 'react-redux';
import {persistor, store} from '@app/redux/store';
import BootSplash from 'react-native-bootsplash';
import ThemeProvider from '@app/themeProvider';
import {toastConfig} from '@app/utilities/toast';
import Toast from 'react-native-toast-message';
import {PersistGate} from 'redux-persist/integration/react';
const App = () => {
// [ ]: Fix theming using system default settings
return (
<>
<Provider store={store}>
<PersistGate persistor={persistor}>
<PaperProvider>
{/* <Toast. */}
<NavigationContainer onReady={() => BootSplash.hide({fade: true})}>
<ThemeProvider />
</NavigationContainer>
<Toast config={toastConfig} />
</PaperProvider>
</PersistGate>
</Provider>
</>
);
};
export const generalStyles = StyleSheet.create({
safeAreaStyle: {
flex: 1,
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
},
});
export default App;
{
/* <StatusBar
barStyle={theme === 'light' ? 'dark-content' : 'light-content'}
backgroundColor="transparent"
translucent
animated
/>
<View style={generalStyles.safeAreaStyle}>
<SafeAreaView
style={{flex: 1, backgroundColor: Colors.screenColor}}>
<ScreenStack />
</SafeAreaView>
</View> */
}