React Native SegmentedControl library
The @react-native-segmented-control/segmented-control is a library that supports iOS, Android, and Web platforms. It provides a SegmentedControl component to render a UISegmentedControl on iOS, with a JavaScript implementation for Android and Web that mimics the iOS 13 style.
To install the @react-native-segmented-control/segmented-control library, follow these steps based on your package manager:
npm:
npm install @react-native-segmented-control/segmented-control
yarn:
yarn add @react-native-segmented-control/segmented-control
pnpm:
pnpm add @react-native-segmented-control/segmented-control
For React Native v0.60+, the package is automatically linked during the build. For manual linking or React Native versions below v0.60, follow the provided instructions.
The @react-native-segmented-control/segmented-control library is a versatile solution for incorporating segmented controls in React Native applications across multiple platforms. Its support for iOS, Android, and Web, along with easy installation and customization options, make it a valuable tool for developers seeking to enhance user interactions in their projects.