Set-up

 From the official documentation, there are 2 ways to set-up and run the app.

  1. Expo
  2. React Native CLI
Expo is easier but it does not allow you to generate an apk for your android app. The CLI allows you to do so but require several setup, namely:

  1. Chocolately - a package manager, I had one but its updated, so I had to learn how to upgrade it. I watch the following video https://www.youtube.com/watch?v=zVq60jcb96s and realised that a useful way to use command line is to use the --help commands.
        To upgrade, I need to know the package name, so I key choco outdated before keying choco upgrade
2. Installing Java

3. Setting up Android Studio - 

Android Native Doctor to diagnose error
https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
Soln:
Need to show package details to include newer SDK build tools


The issue for this is that the compiled SDK level must match the latest sdk


Soln: Go to File > Project Structure, change all to the latest SDK
Gradle Path must also point to Environment variable







Comments