m-input-number
m-input-number copied to clipboard
RN bug when near maximum/minimum + Background
How can I change the white background to transparent?
Also when value is 100, and i use minus sign to go to 99.99, and increase again to 100, the value starts to blink and increase even if i lower the value
http://imgur.com/V2VNHm7
<InputNumber
styles={inputNumberStyles}
// inputStyle={{ backgroundColor: 'blue' }}
// style={{ backgroundColor: 'blue', paddingHorizontal: 10 }}
// styles={{ container: { flex: 1, backgroundColor: 'transparent' }, input: { backgroundColor: 'transparent' }, backgroundColor: 'transparent', flex: 1 }}
min={-100}
max={100}
step={0.01}
value={this.state.brand.value}
// precision={2}
style={{ backgroundColor: 'white', paddingHorizontal: 10 }}
// readOnly
// onChange={this.onChange}
onChange={value => this.setState({ brand: { ...brand, value } })}
// disabled
keyboardType={Platform.OS === 'ios' ? 'number-pad' : 'numeric'}
/>
<Slider
minimumValue={-100}
maximumValue={100}
step={0.5}
style={{ flex: 1 }}
value={this.state.brand.value}
onValueChange={value => this.setState({ brand: { ...brand, value } })}
/>
Copy from https://github.com/react-component/input-number/issues/78
@basequatro