Spaces:
Sleeping
Sleeping
Commit ·
cba4e90
0
Parent(s):
Initial commit
Browse filesGenerated by create-expo-app 3.5.3.
- .gitattributes +5 -0
- .gitignore +41 -0
- App.tsx +20 -0
- app.json +30 -0
- assets/android-icon-background.png +3 -0
- assets/android-icon-foreground.png +3 -0
- assets/android-icon-monochrome.png +3 -0
- assets/favicon.png +3 -0
- assets/icon.png +3 -0
- assets/splash-icon.png +3 -0
- index.ts +8 -0
- package.json +22 -0
- tsconfig.json +6 -0
.gitattributes
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ico filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
|
| 2 |
+
|
| 3 |
+
# dependencies
|
| 4 |
+
node_modules/
|
| 5 |
+
|
| 6 |
+
# Expo
|
| 7 |
+
.expo/
|
| 8 |
+
dist/
|
| 9 |
+
web-build/
|
| 10 |
+
expo-env.d.ts
|
| 11 |
+
|
| 12 |
+
# Native
|
| 13 |
+
.kotlin/
|
| 14 |
+
*.orig.*
|
| 15 |
+
*.jks
|
| 16 |
+
*.p8
|
| 17 |
+
*.p12
|
| 18 |
+
*.key
|
| 19 |
+
*.mobileprovision
|
| 20 |
+
|
| 21 |
+
# Metro
|
| 22 |
+
.metro-health-check*
|
| 23 |
+
|
| 24 |
+
# debug
|
| 25 |
+
npm-debug.*
|
| 26 |
+
yarn-debug.*
|
| 27 |
+
yarn-error.*
|
| 28 |
+
|
| 29 |
+
# macOS
|
| 30 |
+
.DS_Store
|
| 31 |
+
*.pem
|
| 32 |
+
|
| 33 |
+
# local env files
|
| 34 |
+
.env*.local
|
| 35 |
+
|
| 36 |
+
# typescript
|
| 37 |
+
*.tsbuildinfo
|
| 38 |
+
|
| 39 |
+
# generated native folders
|
| 40 |
+
/ios
|
| 41 |
+
/android
|
App.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { StatusBar } from 'expo-status-bar';
|
| 2 |
+
import { StyleSheet, Text, View } from 'react-native';
|
| 3 |
+
|
| 4 |
+
export default function App() {
|
| 5 |
+
return (
|
| 6 |
+
<View style={styles.container}>
|
| 7 |
+
<Text>Open up App.tsx to start working on your app!</Text>
|
| 8 |
+
<StatusBar style="auto" />
|
| 9 |
+
</View>
|
| 10 |
+
);
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
const styles = StyleSheet.create({
|
| 14 |
+
container: {
|
| 15 |
+
flex: 1,
|
| 16 |
+
backgroundColor: '#fff',
|
| 17 |
+
alignItems: 'center',
|
| 18 |
+
justifyContent: 'center',
|
| 19 |
+
},
|
| 20 |
+
});
|
app.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"expo": {
|
| 3 |
+
"name": "react-native-chinese-app",
|
| 4 |
+
"slug": "react-native-chinese-app",
|
| 5 |
+
"version": "1.0.0",
|
| 6 |
+
"orientation": "portrait",
|
| 7 |
+
"icon": "./assets/icon.png",
|
| 8 |
+
"userInterfaceStyle": "light",
|
| 9 |
+
"splash": {
|
| 10 |
+
"image": "./assets/splash-icon.png",
|
| 11 |
+
"resizeMode": "contain",
|
| 12 |
+
"backgroundColor": "#ffffff"
|
| 13 |
+
},
|
| 14 |
+
"ios": {
|
| 15 |
+
"supportsTablet": true
|
| 16 |
+
},
|
| 17 |
+
"android": {
|
| 18 |
+
"adaptiveIcon": {
|
| 19 |
+
"backgroundColor": "#E6F4FE",
|
| 20 |
+
"foregroundImage": "./assets/android-icon-foreground.png",
|
| 21 |
+
"backgroundImage": "./assets/android-icon-background.png",
|
| 22 |
+
"monochromeImage": "./assets/android-icon-monochrome.png"
|
| 23 |
+
},
|
| 24 |
+
"predictiveBackGestureEnabled": false
|
| 25 |
+
},
|
| 26 |
+
"web": {
|
| 27 |
+
"favicon": "./assets/favicon.png"
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
assets/android-icon-background.png
ADDED
|
|
Git LFS Details
|
assets/android-icon-foreground.png
ADDED
|
|
Git LFS Details
|
assets/android-icon-monochrome.png
ADDED
|
|
Git LFS Details
|
assets/favicon.png
ADDED
|
|
Git LFS Details
|
assets/icon.png
ADDED
|
|
Git LFS Details
|
assets/splash-icon.png
ADDED
|
|
Git LFS Details
|
index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { registerRootComponent } from 'expo';
|
| 2 |
+
|
| 3 |
+
import App from './App';
|
| 4 |
+
|
| 5 |
+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
| 6 |
+
// It also ensures that whether you load the app in Expo Go or in a native build,
|
| 7 |
+
// the environment is set up appropriately
|
| 8 |
+
registerRootComponent(App);
|
package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "react-native-chinese-app",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"main": "index.ts",
|
| 5 |
+
"scripts": {
|
| 6 |
+
"start": "expo start",
|
| 7 |
+
"android": "expo start --android",
|
| 8 |
+
"ios": "expo start --ios",
|
| 9 |
+
"web": "expo start --web"
|
| 10 |
+
},
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"expo": "~55.0.5",
|
| 13 |
+
"expo-status-bar": "~55.0.4",
|
| 14 |
+
"react": "19.2.0",
|
| 15 |
+
"react-native": "0.83.2"
|
| 16 |
+
},
|
| 17 |
+
"devDependencies": {
|
| 18 |
+
"@types/react": "~19.2.2",
|
| 19 |
+
"typescript": "~5.9.2"
|
| 20 |
+
},
|
| 21 |
+
"private": true
|
| 22 |
+
}
|
tsconfig.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"extends": "expo/tsconfig.base",
|
| 3 |
+
"compilerOptions": {
|
| 4 |
+
"strict": true
|
| 5 |
+
}
|
| 6 |
+
}
|