-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
55 lines (49 loc) · 1.33 KB
/
Copy pathApp.js
File metadata and controls
55 lines (49 loc) · 1.33 KB
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import {backgroundColor, ThemeProvider} from '@shopify/restyle';
import React from 'react';
import FlashMessage from 'react-native-flash-message';
import {
StatusBar,
StyleSheet,
SafeAreaView,
} from 'react-native';
import {QueryClient, QueryClientProvider} from 'react-query';
import theme from './src/constants/theme';
import AppNavigator from './src/navigation/AppNavigator';;
import Styles from './src/constants/Styles';
// console.disableYellowBox = true;
export const queryClient = new QueryClient();
const App = () => {
return (
<ThemeProvider theme={theme}>
<QueryClientProvider client={queryClient}>
<SafeAreaView style={{flex: 1}}>
<FlashMessage
position="top"
duration={3000}
style={styles.flash}
textStyle={styles.textStyle}
hideStatusBar={false}
/>
<AppNavigator />
</SafeAreaView>
</QueryClientProvider>
</ThemeProvider>
);
};
const styles = StyleSheet.create({
flash: {
marginTop: Styles.paddings.medium,
},
textStyle: {
fontFamily: Styles.FontFamily,
fontSize: Styles.FontSize.medium,
},
});
export default App;