v4.0.0
This has been refactored as a functional Typescript component. In addition, consolidated the ImageView and Step components into the parent component. Furthermore, the ability to control color easily was implemented, see new props useColor and color, as a result several styles were changed and default color scheme is black to match the default image colors.
Breaking changes
textStyledefaults changed to{marginHorizontal: 8, fontSize 24}.containerStyledefaults changed to{flexDirection: 'row', borderWidth: 1, borderRadius: 8, alignItems: 'center',justifyContent: 'space-evenly'}separatorStyle's default backgroundColor change toblack.- Both
incrementStepStyleanddecrementStepStyle's padding changed to 4. - Both
incrementImageStyleanddecrementImageStyleheightandwidthchanged to 30. renderTextpassed arguments changed tovaluenumber.renderDecrementSteppassed arguments changed tovaluenumber andonDecrementfunction.renderIncrementSteppassed arguments changed tovaluenumber andonIncrementfunction.renderDecrementImagepassed arguments changed toopacitynumber.renderIncrementImagepassed arguments changed toopacitynumber.
New
disableIncrementImageTintColoras name implies, defaults tofalse.disableDecrementImageTintColoras name implies, defaults tofalse.useColordefaults tofalseand works in-conjunction withcolorto apply a color to the stepper styles.colordefaults toblueand works in-conjunction withuseColorto apply color tocontainerStyle's border color,separatorStyle's backgroundColor,incrementImageStyle's tintColor,decrementImageStyle's tintColor andtextStyle's color ifshowTextenabled.textDecimalPlacesdefaults to 2 and formats thevaluenumber whenshowTextis enabled and is not an integer.