Saturday, 24 September 2022

Getting the SHA1 from your React Native Android App

Instruction

  •  In your terminal, enter the command cd android && ./gradlew signingReport 
  • The result will display the debug and release version SHA1. Choose the corresponding version appropriately.
  • Then you can go to Google Developer Console and generate the OAuth Client ID for Android.
  • Copy the ID generated and save it in a .env file at the root of your React Native app.

Reference:

Hafiz Hanif, PhD