Skip to content

Commit e526142

Browse files
committed
Set up app skeleton
1 parent eed6aba commit e526142

File tree

13 files changed

+8229
-1
lines changed

13 files changed

+8229
-1
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules/**/*
2+
.expo/*
3+
npm-debug.*
4+
*.jks
5+
*.p8
6+
*.p12
7+
*.key
8+
*.mobileprovision
9+
*.orig.*
10+
web-build/
11+
12+
# macOS
13+
.DS_Store

App.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react'
2+
import { StatusBar } from 'expo-status-bar'
3+
import { NavigationContainer } from '@react-navigation/native'
4+
import { createStackNavigator } from '@react-navigation/stack'
5+
6+
import HomeScreen from './src/HomeScreen'
7+
import { screenOptions } from './src/styles'
8+
9+
const Stack = createStackNavigator()
10+
11+
export default function App() {
12+
return (
13+
<NavigationContainer>
14+
<Stack.Navigator initialRouteName="Home" screenOptions={screenOptions}>
15+
<Stack.Screen
16+
name="Home"
17+
component={HomeScreen}
18+
options={{ title: '📖 The GraphQL Guide' }}
19+
/>
20+
</Stack.Navigator>
21+
<StatusBar style="light" />
22+
</NavigationContainer>
23+
)
24+
}

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

app.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"expo": {
3+
"name": "guide",
4+
"slug": "guide",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "cover",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": ["**/*"],
17+
"ios": {
18+
"supportsTablet": true
19+
},
20+
"web": {
21+
"favicon": "./assets/favicon.png"
22+
}
23+
}
24+
}

assets/favicon.png

5.91 KB
Loading

assets/icon.png

25.5 KB
Loading

assets/splash.png

23.9 KB
Loading

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function (api) {
2+
api.cache(true)
3+
return {
4+
presets: ['babel-preset-expo'],
5+
}
6+
}

0 commit comments

Comments
 (0)