Skip to content

Commit b3a0437

Browse files
committed
Created a new Expo app
0 parents  commit b3a0437

10 files changed

+107
-0
lines changed

.expo-shared/assets.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}

.gitignore

+13
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.tsx

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { StatusBar } from 'expo-status-bar';
2+
import React from 'react';
3+
import { StyleSheet, Text, View } from 'react-native';
4+
5+
export default function App() {
6+
return (
7+
<View style={styles.container}>
8+
<Text>Open up App.tsx to start working on your app!</Text>
9+
<StatusBar style="auto" />
10+
</View>
11+
);
12+
}
13+
14+
const styles = StyleSheet.create({
15+
container: {
16+
flex: 1,
17+
backgroundColor: '#fff',
18+
alignItems: 'center',
19+
justifyContent: 'center',
20+
},
21+
});

app.json

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

assets/favicon.png

1.43 KB
Loading

assets/icon.png

642 Bytes
Loading

assets/splash.png

9.09 KB
Loading

babel.config.js

+6
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+
};

package.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"main": "node_modules/expo/AppEntry.js",
3+
"scripts": {
4+
"start": "expo start",
5+
"android": "expo start --android",
6+
"ios": "expo start --ios",
7+
"web": "expo start --web",
8+
"eject": "expo eject"
9+
},
10+
"dependencies": {
11+
"expo": "~38.0.8",
12+
"expo-status-bar": "^1.0.2",
13+
"react": "~16.11.0",
14+
"react-dom": "~16.11.0",
15+
"react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
16+
"react-native-web": "~0.11.7"
17+
},
18+
"devDependencies": {
19+
"@babel/core": "^7.8.6",
20+
"@types/react": "~16.9.41",
21+
"@types/react-native": "~0.62.13",
22+
"typescript": "~3.9.5"
23+
},
24+
"private": true
25+
}

tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"jsx": "react-native",
5+
"lib": ["dom", "esnext"],
6+
"moduleResolution": "node",
7+
"noEmit": true,
8+
"skipLibCheck": true,
9+
"resolveJsonModule": true,
10+
"strict": true
11+
}
12+
}

0 commit comments

Comments
 (0)