/
App.tsx
33 lines (29 loc) · 1.02 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
(navigator as any).geolocation = require('react-native-geolocation-service');
import React from 'react';
import { View, LogBox } from 'react-native';
import RootNavigation from './navigation/RootNavigation';
import { client } from './gqlclient_store';
import { ApolloProvider } from '@apollo/client';
import { observer } from 'mobx-react';
import FlashMessage from 'react-native-flash-message';
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
import { colors } from './constants/colors';
// Deprecation warnings in Expo Modules
LogBox.ignoreLogs([
'EventEmitter.removeListener',
'new NativeEventEmitter()',
'Overwriting fontFamily style attribute preprocessor',
]);
const App = observer(() => {
return (
<ActionSheetProvider>
<ApolloProvider client={client}>
<View style={{ flex: 1, backgroundColor: colors.PRIMARY }}>
<RootNavigation />
<FlashMessage position="bottom" />
</View>
</ApolloProvider>
</ActionSheetProvider>
);
});
export default App;