Note: Since my personal PC is based on the Windows operating system, the app is only available on Android, both for Windows and Mac users. I'm not allowed to use non-personal devices for projects of this type, however, I have experience working with XCode
First you need to run the command to install all requirement dependencies
yarn install
It is necessary to launch an emulator or a real device
# using Windows
yarn android
# using Mac
yarn android:mac
If everything is set up correctly, you should see your new app running in your Android Emulator or 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.
After you need to run command o start Metro, the JavaScript bundler that ships with React Native.
yarn start
Now that you have successfully run the app, let's modify it.
- Open
App.tsx
in your text editor of choice and edit some lines. - For Android: Press the R key twice or select "Reload" from the Developer Menu (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes!
You've successfully run and modified this React Native App. 🥳