Skip to content

TextInput value prop break Chinese character input  #19104

@kdong007

Description

@kdong007

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 8.9.0
Yarn: 1.5.1
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.3.2 => 16.3.2
react-native: ^0.55.3 => 0.55.3

Steps to Reproduce

export class Test extends React.PureComponent {

    state = {
        text: "",
    };

    render() {
        return (
            <View>
                <Text>test:</Text>
                <TextInput
                    value={this.state.text}
                    onChangeText={text => this.setState({ text })}
                />
            </View>
        );
    }
}

try input some Chinese using soft keyboard

Expected Behavior

Textinput works like Textinput in 0.51

Actual Behavior

Can't select Chinese character from pinyin.
It only works if value={this.state.text} is removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TextInputRelated to the TextInput component.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions