Skip to content
IAN ZHU edited this page Oct 20, 2025 · 6 revisions

Environment Setup

Follow the instructions at React Native: Set Up Your Environment.

If you prefer, you can install Java 17 using an installer here rather than using a package manager.

Clone the Repository

There are 2 ways to do this, SSH or HTTPS.

SSH

Use this command in terminals like Git Bash, Ubuntu, Powershell, etc.

git clone git@github.com:rhventures/react-native-dropdown-selector.git

HTTPS

Use this link in IDEs like VSCode, IntelliJ, etc. to clone directly.

https://github.com/rhventures/react-native-dropdown-selector.git

Install Dependencies

Install the component dependencies in the root of the project.

cd react-native-dropdown-selector
npm install

Install the example dependencies in the ./example directory.

cd example
npm install

Run the Example Project

Android

Run the following command while inside the ./example directory. If using an emulator, make sure that your emulator from Android Studio is already running.

npm run android

The example app should show up on your phone or emulator if you followed all the steps in React Native: Set Up Your Environment.

iOS

To test and run the example app on iOS devices, go to ./example/ios directory, and run the following commands:

bundle install
bundle exec pod install

Make sure you have an iOS device simulator running on Xcode, after all the dependencies have been installed, run the following command:

npm run ios

The example app should show up on your iOS simulator if you followed all the steps above.

Now, you should see changes you make to the component and example app show up on your device or emulator.

Clone this wiki locally