Releases: marcocesarato/react-native-input-spinner
Releases · marcocesarato/react-native-input-spinner
Release 1.4.8
- Fix outline styles fatal error
Release 1.4.7
- Fix issues with repetitive updates of prop value
Release 1.4.6
- Fix issue with outlines on web
- Fix add initialValue on typing #25
Release 1.4.5
- Add acceleration to
onLongPress
events - Fix some bugs with placeholder #20
Props
Property | Description | Type | Default |
---|---|---|---|
emptied |
Set if input can be empty | Boolean | false |
BREAKING CHANGES
- Change prop name from
onLongPressDelay
toaccelerationDelay
- Change prop name from
onLongPressSpeed
tospeed
New Release 1.4.2
- Add Typescript definitions #22
- Add on long press event that continually increase/decrease value holding the right or the left button #21
- Add props for manage on long press event
- Fix some issues and improve UX of spinner #20
- Add a little delay (default
750ms
) when typing before trigger the onChange event
Props
Property | Description | Type | Default |
---|---|---|---|
onLongPressDelay |
Delay time before start the on long event and increase or decrease and continually | Number | 750 |
onLongPressSpeed |
Speed of increase or decrease and continually | Number | 7 |
typingTime |
Time before debounce and trigger onChange event |
Number | 750 |
Release 1.3.7
- Fix web view width #19
- On events
onChange
,onIncrease
andonDecrease
now return callback can be async
Release 1.3.6
- Now is possibile cancel the
onChange
event returningfalse
ononChange
/onIncrease
/onDecrease
and can is possibile change the changed number returning a desired number.
Release 1.3.2
Props
Property | Description | Type | Default |
---|---|---|---|
inputProps |
Customized TextInput Component props | Object | null |
leftButtonProps |
Customized left button (Touchable Component) props | Object | null |
placeholder |
The string that will be rendered when text input value is equal to zero | String | null |
placeholderTextColor |
The text color of the placeholder string. | String | null |
rightButtonProps |
Customized right button (Touchable Component) props | Object | null |
Merged #17
Release 1.3.1
- Fixed some issues with min and max ranges
Release 1.3.0
- Fixed issues with
intialValue
#14 - Auto adjust limit of input/initial value (
max
,min
) - Nullable limits (
max
,min
and default still0
)
BREAKING CHANGE:
Default max
value is now unrestricted (previously limited to 999
)