Skip to main content

Environment Setup

The React Native team has done a great job of making it easy to get started with React Native. This guide will walk you through the process of setting up your development environment.

Download

Open your terminal and navigate to the directory where you want to clone the repository. Then run one of the following commands to download the repository.

# Mobile App
git clone https://github.com/pooldash/pd-mobile.git
# Formulas
git clone https://github.com/pooldash/formulas.git
# Documentaion
git clone https://github.com/pooldash/docs.git

Install dependencies

Navigate to the project directory and install the dependencies listed in the package.json file by running the following command:

cd pd-mobile
npm install

Generate a podfile for iOS

cd ios
pod install --repo-update

Start the application

npm start

You should see the following output in your terminal:

npm start

Run on of the following commands below to start an emulator

npm run ios
# On android you will need to have an emulator running or a device connected before running this command.
npm run android

You should see the following in your emulator after the app builds.

App running on ios emulator

Congrats! You have successfully set up your development environment and are ready to start contributing to the project.