Animated segmented control for react native.
npm install --save react-native-animated-segmented-control
import AnimatedSegmentedControl from 'react-native-animated-segmented-control';
class App extends Component {
render() {
return (
<View>
<AnimatedSegmentedControl />
</View>
);
}
}
Coming Soon!
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 |
MIT