/react-native-animated-segmented-control

Animated segmented control for react native.

Primary LanguageJavaScriptMIT LicenseMIT

React Native Animated Segmented Control

Animated segmented control for react native.

npm version

Installation

npm install --save react-native-animated-segmented-control

Basic usage

import AnimatedSegmentedControl from 'react-native-animated-segmented-control';

class App extends Component {
  render() {
    return (
      <View>
        <AnimatedSegmentedControl />
      </View>
    );
  }
}

Customize

Coming Soon!

Properties

Props Type Description Default
borderWidth number 1
borderRadius number 1
borderColor string #000
backgroundColor string #fff
textPadding number 2
textColor string #000
selectedBorderRadius number None
selectedBackgroundColor string #000
selectedTextColor string #fff
values arrayOf(string) []
onChange func None
onValueChange func None

Contact

📭 shiningjason1989@gmail.com

License

MIT