O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating a Signed APK file

First, in your terminal, we'll generate a private signing key:

    $ keytool -genkey -v -keystore friends-release-key.keystore -alias     friends -key-alias -keyalg RSA-keysize 2048 -validity 10000

You'll set a password for your keystore and key. Your release key will be labeled friends-release-key, unless you choose otherwise.

The validity flag in this command sets the validity of the key for x number of days. In this case, it's 10000, due to our command.

This keystore file will be located at the directory in which your terminal prompt was when you ran the command. Move it over to android/app in your Friends app repo.

Important! It's not a good idea to commit your keystore file to Git or any other version control ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required