mirror of https://gitlab.com/m3f_usm/SmartStopAPK
68 lines
1.6 KiB
Markdown
68 lines
1.6 KiB
Markdown
# Getting Started
|
|
|
|
> **Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
|
|
|
|
## Step 1: Install dependencies
|
|
|
|
```bash
|
|
yarn install
|
|
```
|
|
|
|
## Step 2: Start your Application
|
|
|
|
### For Android
|
|
|
|
```bash
|
|
yarn android
|
|
```
|
|
|
|
### For iOS
|
|
|
|
```bash
|
|
yarn ios
|
|
```
|
|
|
|
If everything is set up _correctly_, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
|
|
|
|
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
|
|
|
|
# Troubleshooting
|
|
|
|
If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
|
|
|
|
# Learn More
|
|
|
|
To learn more about React Native, take a look at the following resources:
|
|
|
|
- [React Native Website](https://reactnative.dev) - learn more about React Native.
|
|
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
|
|
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
|
|
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
|
|
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
|
|
|
|
## Utility scripts
|
|
|
|
### Start metro server
|
|
|
|
```bash
|
|
yarn start
|
|
```
|
|
|
|
### Linting code
|
|
|
|
```bash
|
|
yarn lint
|
|
```
|
|
|
|
### Run tests
|
|
|
|
```bash
|
|
yarn test
|
|
```
|
|
|
|
### Create a release apk
|
|
|
|
```bash
|
|
yarn build:apk:release
|
|
```
|