Skip to content
/ rnboilerplate Public template

A basic react native boilerplate that has all the necessary packages added to kickstart project development on the go.

Notifications You must be signed in to change notification settings

shantanubr/rnboilerplate

Repository files navigation

React Native Boilerplate

Node version in use: v18.17.0

JAVA Version: JDK 17

Prerequisites: Have Android Studio and Xcode in your system.

Modify Existing Shell Environment

source ~/.bash_profile

To manually set $JAVA_HOME env variable:

export "JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home";

Check it using this command:

echo $JAVA_HOME

Install dependencies

yarn

For Android

cd android && ./gradlew clean && cd ..

For iOS

yarn fix-boost && cd ios && pod install

In case if anything fails during pod install:

Delete Podfile.lock file in the ios folder and run the following commands:

# rm -rf ~/.cocoapods/repos/trunk
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install

Start your application

For Android

yarn android

For iOS

yarn ios