Cloning the Github repository

  1. Do a git clone of the repository using the following command

    git clone <https://github.com/push-protocol/push-mobile-app.git>
    
    # or if you are using ssh then please do
    
    git clone [email protected]:push-protocol/push-mobile-app.git
    

    https://github.com/push-protocol/push-mobile-app/

Setting up React Native:

  1. Now you have cloned the repository you will also need to setup Android and IOS development environments in order to run your react native project on the local machine.
  2. Please go through the official React Native documentation which will help you with the setup.

Known Issues in setting up React Native:

<aside> 💡 Then please use brew install cocoapods instead of sudo gem install cocoapods which is mentioned in the original cocoapods documentation.

</aside>

Adding the required env variables and files

Please find the former link below to access the environment files. This link is exclusively available to the Push team. Other contributors can refer to the latter guide to create their own environment variables.

Generating PUSH Mobile ENV Files (External Contributors)

Adding the files to the right folders

Once you have obtained all the environment related files, you can follow the below steps to add them to the correct folders.

  1. Create an .env.prod and .env.staging file at the project root taking reference from the .env.prod.sample and .env.staging.sample respectively.
  2. In the /android/app/ folder, add the staging.keystore and prod.keystore files.
  3. In the /android/app/src directory, add the google-services.json files to the respective prod and staging folders.
  4. Create a /ios/GoogleService folder. Inside it, create 2 new folders named Prod and Staging and add the respective GoogleService-Info.plist files to them.