|
@@ -1,56 +1,46 @@
|
|
|
-# Welcome to your Expo app 👋
|
|
|
|
|
|
|
+# 客户端
|
|
|
|
|
+# 基于Expo app 👋
|
|
|
|
|
+ [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
|
|
|
|
|
|
|
|
-This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
|
|
|
|
|
-
|
|
|
|
|
-## Get started
|
|
|
|
|
-
|
|
|
|
|
-1. Install dependencies
|
|
|
|
|
|
|
+## 开始
|
|
|
|
|
|
|
|
|
|
+1. 安装依赖
|
|
|
```bash
|
|
```bash
|
|
|
- npm install
|
|
|
|
|
|
|
+ pnpm install
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-2. Start the app
|
|
|
|
|
|
|
+2. 运行
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- npx expo start
|
|
|
|
|
|
|
+ pnpm android / ios ...
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-In the output, you'll find options to open the app in a
|
|
|
|
|
-
|
|
|
|
|
-- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
|
|
|
|
|
-- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
|
|
|
|
|
-- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
|
|
|
|
|
-- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
|
|
|
|
|
|
|
|
|
|
-You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
|
|
|
|
|
|
|
+## 相关配置
|
|
|
|
|
+1. app 配置
|
|
|
|
|
+/src/config.json
|
|
|
|
|
+···json
|
|
|
|
|
|
|
|
-## Get a fresh project
|
|
|
|
|
-
|
|
|
|
|
-When you're ready, run:
|
|
|
|
|
-
|
|
|
|
|
-```bash
|
|
|
|
|
-npm run reset-project
|
|
|
|
|
|
|
+{
|
|
|
|
|
+ "api": {
|
|
|
|
|
+ "url": "https://api.com/api/v1/", // api 地址
|
|
|
|
|
+ "timeout": 15000
|
|
|
|
|
+ },
|
|
|
|
|
+ "site": "https://xxx.com/", // 官网地址 强更/隐私协议等
|
|
|
|
|
+ "jsVersion": "1"
|
|
|
|
|
+}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
|
|
|
|
|
-
|
|
|
|
|
-### Other setup steps
|
|
|
|
|
-
|
|
|
|
|
-- To set up ESLint for linting, run `npx expo lint`, or follow our guide on ["Using ESLint and Prettier"](https://docs.expo.dev/guides/using-eslint/)
|
|
|
|
|
-- If you'd like to set up unit testing, follow our guide on ["Unit Testing with Jest"](https://docs.expo.dev/develop/unit-testing/)
|
|
|
|
|
-- Learn more about the TypeScript setup in this template in our guide on ["Using TypeScript"](https://docs.expo.dev/guides/typescript/)
|
|
|
|
|
-
|
|
|
|
|
-## Learn more
|
|
|
|
|
-
|
|
|
|
|
-To learn more about developing your project with Expo, look at the following resources:
|
|
|
|
|
-
|
|
|
|
|
-- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
|
|
|
|
|
-- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
|
|
|
|
|
-
|
|
|
|
|
-## Join the community
|
|
|
|
|
|
|
+2. 热更
|
|
|
|
|
+/app.json
|
|
|
|
|
+```json
|
|
|
|
|
+ "updates": {
|
|
|
|
|
+ "enabled": true,
|
|
|
|
|
+ "checkAutomatically": "NEVER",
|
|
|
|
|
+ "url": "https://updates-loan.xxx.com/api/manifest", // 热更地址(使用第三方)
|
|
|
|
|
+ ...
|
|
|
|
|
+```
|
|
|
|
|
|
|
|
-Join our community of developers creating universal apps.
|
|
|
|
|
|
|
|
|
|
-- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
|
|
|
|
|
-- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
|
|
|
|
|
|
|
+## 热跟推送
|
|
|
|
|
+airpush.sh (请先修改serverHost为热根服务器)
|