Merge branch '347-maxlength-in-temp-input' into 'master'
adds maxLength to temperature input field Closes #347 See merge request bloodyhealth/drip!207
This commit is contained in:
@@ -125,6 +125,7 @@ export default class Temp extends Component {
|
|||||||
value={this.state.temperature}
|
value={this.state.temperature}
|
||||||
onChangeText={this.setTemperature}
|
onChangeText={this.setTemperature}
|
||||||
keyboardType='numeric'
|
keyboardType='numeric'
|
||||||
|
maxLength={5}
|
||||||
onBlur={this.checkRange}
|
onBlur={this.checkRange}
|
||||||
/>
|
/>
|
||||||
<AppText style={{ marginLeft: 5 }}>°C</AppText>
|
<AppText style={{ marginLeft: 5 }}>°C</AppText>
|
||||||
|
|||||||
Reference in New Issue
Block a user