Here, props name in the handler function is the same as the name in state, both are `phone'
state = {
phone: '',
}
.
<TextInput
onChangeText={this.handlePhoneChange}
/>
.
handlePhoneChange = phone => {
this.setState({phone})
}
shouldn't it be this.setState({phone:phone})? are the two statements synonymous or am I missing something?