This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const Mongoose = require('mongoose'); | |
const PORT = 8080; | |
const app = express(); | |
const { apolloExpress, graphiqlExpress } = require('apollo-server'); | |
const { makeExecutableSchema } = require('graphql-tools'); | |
Mongoose.Promise = global.Promise; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { AppRegistry } from 'react-native' | |
import App from './app' | |
import ApolloClient, { createNetworkInterface } from 'apollo-client'; | |
import { ApolloProvider } from 'react-apollo' | |
const Client = () => { | |
const networkInterface = createNetworkInterface({ | |
uri: 'http://localhost:8080/graphql' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { View, Text, TextInput, StyleSheet } from 'react-native' | |
import { graphql } from 'react-apollo'; | |
import gql from 'graphql-tag' | |
class App extends Component { | |
constructor() { | |
super() | |
this.state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { AppRegistry } from 'react-native' | |
import NavRootContainer from './NavRootContainer' | |
import configureStore from './configureStore' | |
import { Provider } from 'react-redux' | |
const store = configureStore() | |
const App = () => ( | |
<Provider store={store}> | |
<NavRootContainer /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const PUSH_ROUTE = 'PUSH_ROUTE' | |
export const POP_ROUTE = 'POP_ROUTE' |