-
Notifications
You must be signed in to change notification settings - Fork 0
Development
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.
There are 2 ways to do this, SSH or HTTPS.
Use this command in terminals like Git Bash, Ubuntu, Powershell, etc.
git clone git@github.com:rhventures/react-native-dropdown-selector.git
Use this link in IDEs like VSCode, IntelliJ, etc. to clone directly.
https://github.com/rhventures/react-native-dropdown-selector.git
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 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.
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.