Step 2. Configure the projects
In this step you install the dependencies each project requires.
Installing React Native dependencies
To prepare the React Native JavaScript app, install the dependencies as follows:
-
In a command prompt, change to the
reactnative/reactnative-todofolder, in the samples repo you downloaded previously. -
Install node dependencies by using the
npmcommand:npm install -
Install the necessary gem files by using the
bundlecommand:bundle install
Installing Android dependencies
The Android project will install the dependencies required when you open it in Android Studio.
No manual steps are required to prepare the Android project.
Installing iOS dependencies
To prepare the iOS app, install the Swift dependencies by using Cocoapods, as follows:
-
In a command prompt, change to the
reactnative/reactnative-todo/iosfolder, in the samples repo you downloaded previously. -
Install swift dependencies by using the
podcommand:pod install