All Projects → kusalshrestha → react-native-animated-segment-control

kusalshrestha / react-native-animated-segment-control

Licence: other
Animated Segment Control for React Native (iOS and Android)

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-animated-segment-control

Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+8810%)
Mutual labels:  uisegmentedcontrol
react-native-resegmented-control
iOS 13+ styled segmented control for React Native
Stars: ✭ 44 (+120%)
Mutual labels:  uisegmentedcontrol
react-native-segment-controller
A react-native segment controller(Tab) for both ios and android.
Stars: ✭ 18 (-10%)
Mutual labels:  segmentcontrol

React Native Animated Segmented Control 🚀

Animated segment control for react native.

Demo

Installation

npm install --save react-native-animated-segment-control
yarn add react-native-animated-segment-control

Usage

import SegmentContorl from 'react-native-animated-segment-control';

render() {
  return (
    <View style={styles.mainContainer}>
      <SegmentControl
        values={['Segment1', 'Segment2', 'Segment3']}
        onChange={(currentIndex) => {}}
        disable={false}
        selectedIndex={1}
      />
    </View>
  )
}

Properties

Prop Type Description
disable Boolean Enable / Disable the entire component. Default is false.
values Array(String) The labels for the control's segment buttons, in order.
onChange function Callback that is called when the user taps a segment.
selectedIndex Number Index of the selected segment.
offsetHeight Number Active Segment's offset height.
style Styles Styles props of segment control.
segmentControlStyle Styles Styles props of segment control.
activeSegmentStyle Styles Styles props of active segment view.
selectedTextStyle Styles Selected Segment's text style.
unSelectedTextStyle Styles Unselected Segment's text style.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].