<TextInput onFocus={this.state.userInputFocus} />
I want to enlarge the area of focus of the textinput. So, when the user presses textLabel, the cursor should focus on textinput. I created a state this.state.userInputFocus as false. Then I added onpress function to Text Label.
<Text onPress={this._onPress} >Username:</Text>
onPress function works for console.log and makes state.userinputfocus true but it won't focus on textinput.
_onPress = () => {
this.state.userInputFocus= true;
console.log('pressed');
console.log(this.state.userInputFocus); //it turns true when pressed
}