TextInput value not binding on IOS #18389
Labels
Platform: iOS
iOS applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.10.0
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.2
react-native: 0.54.2 => 0.54.2
Expected Behavior
TextInput value binding to state
Set state for TextInput to use
state = { text: "useless text" }
In component render method
render() {
return (
<TextInput value={this.state.text} />
)
}
On TextInput text change, the value of the text input should still be "useless text"
Actual Behavior
On Android Emulator it works as expected. However on IOS simulator, the value changes. Not sure if this is an intended behaviour.
Steps to Reproduce
Fresh project from react-native init.
The text was updated successfully, but these errors were encountered: