A parity version of the iOS UIStepper.
yarn add react-native-simple-stepper |
npm install react-native-simple-stepper --save |
import React from 'react';
import SimpleStepper from 'react-native-simple-stepper';
export default function Example(): React.JSX.Element {
return <SimpleStepper valueChanged={value => console.log(value)} />;
}
left | center (default) | right |
---|---|---|
import React from 'react';
import SimpleStepper from 'react-native-simple-stepper';
export default function TextPositionExample(): React.JSX.Element {
return <SimpleStepper showText={true} textPosition={'right'} />;
}