/SeekSnow

寻雪,独属你的浪漫

Primary LanguageTypeScript

寻雪

在安装依赖包gradle、JDK17版本问题上难住了我两天,我以为我第一个APP项目黄了,没想到还是启动起来了,慢慢来,总会解决,接下来让我们构建一个自己类原生APP----寻雪

如何开始运行你的APP

Step 1: Start the Metro Server

First, you will need to start Metro, the JavaScript bundler that ships with React Native.

To start Metro, run the following command from the root of your React Native project:

# using npm
npm start

# OR using Yarn
yarn start

Step 2: Start your Application

Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:

For Android

# using npm
npm run android

# OR using Yarn
yarn android

For iOS

# using npm
npm run ios

# OR using Yarn
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 pages