marcocesarato / react-native-input-spinner

An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
https://marcocesarato.github.io/react-native-input-spinner/
GNU General Public License v3.0
415 stars 34 forks source link

Feature request: no value & placeholder #16

Closed krisgerhard closed 3 years ago

krisgerhard commented 3 years ago

It is not possible for the input to have no value at the moment. I think it'd be a nice addition with a placeholder property.

marcocesarato commented 3 years ago

Added and published on release 1.3.2 the following proprieties.

Property Description Type Default
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

Notes

The placeholder will appear only if the value of the spinner is equal to 0 (zero)