From ea279338e0fe91a1e3f8baf7d77822eb3c6a7f25 Mon Sep 17 00:00:00 2001 From: tina Date: Tue, 30 Apr 2019 23:24:44 +0200 Subject: [PATCH] adds maxLength to temperature input field --- components/cycle-day/symptoms/temperature.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 228491b..6ebada9 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -125,6 +125,7 @@ export default class Temp extends Component { value={this.state.temperature} onChangeText={this.setTemperature} keyboardType='numeric' + maxLength={5} onBlur={this.checkRange} /> °C