-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (25 loc) · 786 Bytes
/
index.js
File metadata and controls
31 lines (25 loc) · 786 Bytes
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
import React from "react";
import { AppRegistry, View, StyleSheet } from "react-native-web";
import ApolloClient from "apollo-boost";
import { ApolloProvider } from "react-apollo";
import gql from "graphql-tag";
import ExchangeRateView from "./view";
import { colors } from "./styles";
const client = new ApolloClient({
uri: `https://48p1r2roz4.sse.codesandbox.io`
});
const App = () => (
<ApolloProvider client={client}>
<View id="root" style={styles.container}>
<ExchangeRateView />
</View>
</ApolloProvider>
);
const styles = StyleSheet.create({
container: {
height: "100vh",
backgroundColor: colors.darkBlue
}
});
AppRegistry.registerComponent("App", () => App);
AppRegistry.runApplication("App", { rootTag: document.getElementById("root") });