forked from monogramdesign/idx-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.j2
74 lines (52 loc) · 2.83 KB
/
README.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{% set perPackageManager = {
"npm": {
"packages": "pkgs.nodejs_20",
"resetProject": "npm run reset-project",
"previewAndroid": "npm run android -- --tunnel"
},
"bun": {
"packages": "pkgs.bun",
"resetProject": "bun reset-project",
"previewAndroid": "bun android --tunnel"
},
"pnpm": {
"packages": "pkgs.nodePackages.pnpm",
"resetProject": "pnpm reset-project",
"previewAndroid": "pnpm android --tunnel"
},
"yarn": {
"packages": "pkgs.yarn",
"resetProject": "yarn reset-project",
"previewAndroid": "yarn android --tunnel"
},
}[packageManager]%}> Edited for use in IDX on 07/09/12
# Welcome to your 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
#### Android
Android previews are defined as a `workspace.onStart` hook and started as a vscode task when the workspace is opened/started.
Note, if you can't find the task, either:
- Rebuild the environment (using command palette: `IDX: Rebuild Environment`), or
- Run `{{perPackageManager.previewAndroid}}` command manually run android and see the output in your terminal. The device should pick up this new command and switch to start displaying the output from it.
In the output of this command/task, 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/)
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
You'll also find options to open the app's developer menu, reload the app, and more.
#### Web
Web previews will be started and managred automatically. Use the toolbar to manually refresh.
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
## Get a fresh project
When you're ready, run:
```bash
{{perPackageManager.resetProject}}
```
This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
## 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
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.