### Start Metro Packager for Example App Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command initiates the Metro bundler, which is essential for running the example application. It should be executed from the project's root directory to enable live reloading and development server functionality. ```sh yarn example start ``` -------------------------------- ### Run Example App on iOS Simulator/Device Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command builds and launches the example application on an iOS simulator or a connected iOS device. It requires an iOS development environment with Xcode installed. ```sh yarn example ios ``` -------------------------------- ### Run Example App on Android Device/Emulator Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command builds and launches the example application on a connected Android device or emulator. It requires a properly configured Android development environment. ```sh yarn example android ``` -------------------------------- ### Run Example App on Web Browser Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command builds and serves the example application for web platforms, allowing it to be viewed in a web browser. It's useful for testing web compatibility and responsiveness. ```sh yarn example web ``` -------------------------------- ### Install Project Dependencies with Yarn Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command installs all required dependencies for the rn-select monorepo project, leveraging Yarn workspaces. It must be run from the root directory to set up the development environment. ```sh yarn ``` -------------------------------- ### Install React Native Select Component Source: https://github.com/peter-olom/rn-select/blob/main/README.md Instructions for adding the `@devrue/rn-select` package to your project using yarn or npm. ```Shell yarn add @devrue/rn-select ``` ```Shell npm install @devrue/rn-select ``` -------------------------------- ### Publish New Version to npm Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command uses `release-it` to automate the process of publishing new versions of the library to npm. It handles tasks like bumping the version based on semver, creating tags, and generating releases. ```sh yarn release ``` -------------------------------- ### Project Scripts Reference Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md A reference list of common `yarn` scripts available in the project's `package.json` file, detailing their purpose and usage for various development tasks. ```APIDOC yarn: setup project by installing dependencies. yarn typecheck: type-check files with TypeScript. yarn lint: lint files with ESLint. yarn test: run unit tests with Jest. yarn example start: start the Metro server for the example app. yarn example android: run the example app on Android. yarn example ios: run the example app on iOS. ``` -------------------------------- ### Run Unit Tests with Jest Source: https://github.com/peter-olom/rn-select/blob/main/CONTRIBUTING.md This command executes the project's unit tests using Jest. Running tests is crucial for verifying the correctness of code changes and preventing regressions before submitting a pull request. ```sh yarn test ``` -------------------------------- ### Basic Usage of React Native Select Component Source: https://github.com/peter-olom/rn-select/blob/main/README.md Demonstrates how to import and use the `Select` component with a simple array of options in a React Native application. ```JavaScript import { Select } from '@devrue/rn-select'; export function App() { const pets = [ ['cat', 'Cat'], ['dog', 'Dog'], ['horse', 'Horse'], ['fish', 'Fish'], ] return