Skip to content

TextInput value prop break Chinese character input  #19104

@kdong007

Description

@kdong007
  • I have reviewed the documentation
    I have searched existing issues

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

Activity

luchenn

luchenn commented on May 3, 2018

@luchenn

I have the same issue.

ihahoo

ihahoo commented on May 5, 2018

@ihahoo

same

littlewords

littlewords commented on May 8, 2018

@littlewords

same in ios

marcmoo

marcmoo commented on May 8, 2018

@marcmoo

same issue on ios

tangkunyin

tangkunyin commented on May 9, 2018

@tangkunyin

@kdong007 It's a bug on iOS
Here is the answer:
#19087
#18874
#18456

jarvisluong

jarvisluong commented on May 9, 2018

@jarvisluong

This bug also affects other language as well (in my case Vietnamese)

yll2wcf

yll2wcf commented on May 18, 2018

@yll2wcf

I have the same problem.
react-native: 0.55.4

wanxsb

wanxsb commented on May 23, 2018

@wanxsb

I have the same problem
react-native: 0.55.4

thu-san

thu-san commented on Jun 18, 2018

@thu-san

react-native: 0.55.4 with expo and I tried fixing
#19087
#18874
#18456

but no success.

heero2801

heero2801 commented on Jun 23, 2018

@heero2801

Same problem with Japanese

woshi82

woshi82 commented on Jul 19, 2018

@woshi82

I have encounter same problem,I'm using chinese. And this PR work for me. #18456

stale

stale commented on Dec 21, 2018

@stale

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

added
StaleThere has been a lack of activity on this issue and it may be closed soon.
on Dec 21, 2018
stale

stale commented on Dec 28, 2018

@stale

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

locked as resolved and limited conversation to collaborators on Dec 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @hramos@wanxsb@tangkunyin@littlewords@woshi82

        Issue actions

          TextInput value prop break Chinese character input · Issue #19104 · facebook/react-native