From ecd3a4d1a255749d4d6bb6047edfaa61be4833fa Mon Sep 17 00:00:00 2001 From: Faraz Patankar Date: Thu, 14 May 2020 18:32:05 -0400 Subject: [PATCH] clean up package.json --- with-apollo/RootComponent.js | 6 +++--- with-apollo/package.json | 14 ++------------ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/with-apollo/RootComponent.js b/with-apollo/RootComponent.js index f7ce843..9a86584 100644 --- a/with-apollo/RootComponent.js +++ b/with-apollo/RootComponent.js @@ -17,15 +17,15 @@ const GET_TWEET = gql` } ` -const RootComponent = () => { +function RootComponent() { const { data, loading, error } = useQuery(GET_TWEET); - if (error) console.error('error', error) + if (error) { console.error('error', error) }; if (loading) return ( - ) + ); const { tweet } = data.twitter; const { user } = tweet; return ( diff --git a/with-apollo/package.json b/with-apollo/package.json index fde9b97..50f6c56 100644 --- a/with-apollo/package.json +++ b/with-apollo/package.json @@ -1,12 +1,4 @@ { - "main": "node_modules/expo/AppEntry.js", - "scripts": { - "start": "expo start", - "android": "expo start --android", - "ios": "expo start --ios", - "web": "expo start --web", - "eject": "expo eject" - }, "dependencies": { "@apollo/client": "^3.0.0-beta.48", "@apollo/link-context": "^2.0.0-beta.3", @@ -18,8 +10,6 @@ "react-native-web": "~0.11.7" }, "devDependencies": { - "@babel/core": "^7.8.6", - "babel-preset-expo": "~8.1.0" - }, - "private": true + "@babel/core": "^7.8.6" + } }