Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Animated Segment Control for React Native (iOS and Android)

NotificationsYou must be signed in to change notification settings

kusalshrestha/react-native-animated-segment-control

Repository files navigation

Animated segment control for react native.

Demo

Installation

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

Usage

importSegmentControlfrom'react-native-animated-segment-control';render(){return(<Viewstyle={styles.mainContainer}><SegmentControlvalues={['Segment1','Segment2','Segment3']}onChange={(currentIndex)=>{}}disable={false}selectedIndex={1}/></View>)}

Properties

PropTypeDescription
disableBooleanEnable / Disable the entire component. Default is false.
valuesArray(String)The labels for the control's segment buttons, in order.
onChangefunctionCallback that is called when the user taps a segment.
selectedIndexNumberIndex of the selected segment.
offsetHeightNumberActive Segment's offset height.
styleStylesStyles props of segment control.
segmentControlStyleStylesStyles props of segment control.
activeSegmentStyleStylesStyles props of active segment view.
selectedTextStyleStylesSelected Segment's text style.
unSelectedTextStyleStylesUnselected Segment's text style.

License

MIT

About

Animated Segment Control for React Native (iOS and Android)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp