-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
41 lines (34 loc) · 3.03 KB
/
App.js
File metadata and controls
41 lines (34 loc) · 3.03 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { SafeAreaView, StyleSheet } from 'react-native';
import Navigation from './src/navigation';
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client'
import FlashMessage from "react-native-flash-message";
const cache = new InMemoryCache()
const client = new ApolloClient({
uri: 'http://192.168.1.10/graphql',
cache
})
const App = () => {
return (
<ApolloProvider client={client}>
<SafeAreaView style={styles.root}>
<Navigation />
<FlashMessage position="top" />
</SafeAreaView>
</ApolloProvider>
);
};
const styles = StyleSheet.create({
root: {
flex: 1,
backgroundColor: 'F9FBFC'
}
});
export default App;