mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 17:13:21 +08:00
clean up package.json
This commit is contained in:
@@ -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 (
|
||||
<SafeAreaView style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
|
||||
<ActivityIndicator />
|
||||
</SafeAreaView>
|
||||
)
|
||||
);
|
||||
const { tweet } = data.twitter;
|
||||
const { user } = tweet;
|
||||
return (
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user