Releases: testshallpass/react-native-simple-stepper
Releases · testshallpass/react-native-simple-stepper
v4.3.0
4.2.0
Migrate to yarn v2 and upgrade react-native to 0.76
- Update arrow based function variables to functions and define return types
- Add optional props:
containerTestID?: string;
separatorTestID?: string;
incrementImageTestID?: string;
decrementImageTestID?: string;
incrementButtonTestID?: string;
decrementButtonTestID?: string;v4.0.1
- Update
npmignoreto excludeRELEASE_NOTES.mdand.gitattributesfiles.
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.
3.0.3
3.0.2
3.0.1
- React has deprecated
componentWillRecieveProplife cycle method so I added prefixUNSAFEto adhere to warning.
3.0.0
Changelog
BREAKING CHANGES
tintColorhas been removed.backgroundColorhas been removed.paddinghas been removed.tintOnIncrementImagehas been removed.tintOnDecrementImagehas been removed.renderIncrementhas been replaced by combination of render functions.renderDecrementhas been replaced by combination of render functions.imageHeighthas been removed.imageWidthhas been removed.
See props for replacements and style objects.
FEATURES
- Added text component that can be shown to display the value in the SimpleStepper. (try
showTextandtextPosition). - Added functions
onMinandonMaxto callback when value reaches min or max. - Added functions
onIncrementandonDecrementto callback when value increments or decrements. - Added style props to help customization.
- Added render functions to help flexibility.
2.1.3
2.1.1
- Fix initialValue not changing on first render.