Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Commit 5c38dce

Browse files
DevanBNilan Marktanner
authored andcommitted
Corrects a few dependency versions and removes dead code.
1 parent 38fa999 commit 5c38dce

4 files changed

Lines changed: 30 additions & 43 deletions

File tree

basic/App.js

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
1-
import React from 'react'
2-
import { StyleSheet, Text, View } from 'react-native'
3-
import { ApolloProvider } from 'react-apollo'
4-
import { ApolloClient, HttpLink, InMemoryCache } from 'apollo-client-preset'
5-
import ListPage from './components/ListPage'
1+
import React from 'react';
2+
import { ApolloProvider } from 'react-apollo';
3+
import { ApolloClient, HttpLink, InMemoryCache } from 'apollo-client-preset';
4+
import ListPage from './components/ListPage';
65

7-
const httpLink = new HttpLink({ uri: 'http://localhost:4000' })
6+
const httpLink = new HttpLink({ uri: 'http://localhost:4000' });
87

98
const client = new ApolloClient({
109
link: httpLink,
11-
cache: new InMemoryCache(),
12-
})
10+
cache: new InMemoryCache()
11+
});
1312

1413
export default class App extends React.Component {
1514
render() {
1615
return (
1716
<ApolloProvider client={client}>
1817
<ListPage />
1918
</ApolloProvider>
20-
)
19+
);
2120
}
2221
}
23-
24-
const styles = StyleSheet.create({
25-
container: {
26-
flex: 1,
27-
backgroundColor: '#fff',
28-
alignItems: 'center',
29-
justifyContent: 'center',
30-
},
31-
})

basic/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"expo": {
3-
"sdkVersion": "22.0.0"
3+
"sdkVersion": "24.0.0"
44
}
55
}

basic/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "0.1.0",
44
"private": true,
55
"devDependencies": {
6-
"jest-expo": "24.0.0",
6+
"flow-bin": "0.49.1",
7+
"jest-expo": "^24.0.0",
78
"react-native-scripts": "1.8.1",
8-
"react-test-renderer": "16.2.0"
9+
"react-test-renderer": "16.0.0"
910
},
1011
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
1112
"scripts": {
@@ -19,12 +20,12 @@
1920
"preset": "jest-expo"
2021
},
2122
"dependencies": {
22-
"apollo-client-preset": "1.0.5",
23-
"expo": "24.0.2",
23+
"apollo-client-preset": "^1.0.5",
24+
"expo": "^24.0.2",
2425
"graphql": "0.12.3",
2526
"graphql-tag": "2.6.1",
26-
"react": "16.2.0",
27+
"react": "16.0.0",
2728
"react-apollo": "2.0.4",
28-
"react-native": "0.51.0"
29+
"react-native": "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz"
2930
}
3031
}

basic/yarn.lock

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ apollo-cache@^1.0.2:
224224
dependencies:
225225
apollo-utilities "^1.0.3"
226226

227-
apollo-client-preset@1.0.5:
227+
apollo-client-preset@^1.0.5:
228228
version "1.0.5"
229229
resolved "https://registry.yarnpkg.com/apollo-client-preset/-/apollo-client-preset-1.0.5.tgz#03042ba31926b5ceae70554add385b90a251aa09"
230230
dependencies:
@@ -2005,7 +2005,7 @@ expect@^21.2.1:
20052005
jest-message-util "^21.2.1"
20062006
jest-regex-util "^21.2.0"
20072007

2008-
expo@24.0.2:
2008+
expo@^24.0.2:
20092009
version "24.0.2"
20102010
resolved "https://registry.yarnpkg.com/expo/-/expo-24.0.2.tgz#3ff9784afd9efbb8eb739289aa53290ddf31a5a5"
20112011
dependencies:
@@ -2239,6 +2239,10 @@ find-up@^2.0.0, find-up@^2.1.0:
22392239
dependencies:
22402240
locate-path "^2.0.0"
22412241

2242+
flow-bin@0.49.1:
2243+
version "0.49.1"
2244+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.49.1.tgz#c9e456b3173a7535a4ffaf28956352c63bb8e3e9"
2245+
22422246
follow-redirects@^1.2.3:
22432247
version "1.2.6"
22442248
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.6.tgz#4dcdc7e4ab3dd6765a97ff89c3b4c258117c79bf"
@@ -2324,8 +2328,8 @@ fs-extra@^4.0.2:
23242328
universalify "^0.1.0"
23252329

23262330
fs-minipass@^1.2.3:
2327-
version "1.2.3"
2328-
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.3.tgz#633ee214389dede91c4ec446a34891f964805973"
2331+
version "1.2.5"
2332+
resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d"
23292333
dependencies:
23302334
minipass "^2.2.1"
23312335

@@ -3139,7 +3143,7 @@ jest-environment-node@^21.2.1:
31393143
jest-mock "^21.2.0"
31403144
jest-util "^21.2.1"
31413145

3142-
jest-expo@24.0.0:
3146+
jest-expo@^24.0.0:
31433147
version "24.0.0"
31443148
resolved "https://registry.yarnpkg.com/jest-expo/-/jest-expo-24.0.0.tgz#3a74f8452060768c48c5b254c08c6e53cf7ee847"
31453149
dependencies:
@@ -4697,9 +4701,9 @@ react-native-vector-icons@4.4.2:
46974701
prop-types "^15.5.10"
46984702
yargs "^8.0.2"
46994703

4700-
react-native@0.51.0:
4704+
"react-native@https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz":
47014705
version "0.51.0"
4702-
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.51.0.tgz#fe25934b3030fd323f3ca1a70f034133465955ed"
4706+
resolved "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz#aa7b9c20266b844bfc916aa2e4ddb51036d2b83c"
47034707
dependencies:
47044708
absolute-path "^0.0.0"
47054709
art "^0.10.0"
@@ -4780,14 +4784,6 @@ react-test-renderer@16.0.0:
47804784
fbjs "^0.8.16"
47814785
object-assign "^4.1.1"
47824786

4783-
react-test-renderer@16.2.0:
4784-
version "16.2.0"
4785-
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.2.0.tgz#bddf259a6b8fcd8555f012afc8eacc238872a211"
4786-
dependencies:
4787-
fbjs "^0.8.16"
4788-
object-assign "^4.1.1"
4789-
prop-types "^15.6.0"
4790-
47914787
react-timer-mixin@^0.13.2:
47924788
version "0.13.3"
47934789
resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22"
@@ -4799,9 +4795,9 @@ react-transform-hmr@^1.0.4:
47994795
global "^4.3.0"
48004796
react-proxy "^1.1.7"
48014797

4802-
react@16.2.0:
4803-
version "16.2.0"
4804-
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
4798+
react@16.0.0:
4799+
version "16.0.0"
4800+
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d"
48054801
dependencies:
48064802
fbjs "^0.8.16"
48074803
loose-envify "^1.1.0"

0 commit comments

Comments
 (0)