Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput value not binding on IOS #18389

Closed
jinshin1013 opened this issue Mar 15, 2018 · 3 comments
Closed

TextInput value not binding on IOS #18389

jinshin1013 opened this issue Mar 15, 2018 · 3 comments
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@jinshin1013
Copy link

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.

textinput bug

Steps to Reproduce

Fresh project from react-native init.

@react-native-bot react-native-bot added Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. labels Mar 15, 2018
@maraujop
Copy link

This was already reported here #18219 and there is a proposed PR to fix it here #18278

@jinshin1013
Copy link
Author

Cheers, @maraujop . I will close this issue.

@maraujop
Copy link

Cheers @jinshin1013 good reporting though

@facebook facebook locked as resolved and limited conversation to collaborators Mar 15, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants