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

Can not select candidate text with an Asia language keyboard on iOS #137

Closed
xxvvii opened this issue Jun 12, 2016 · 3 comments
Closed

Can not select candidate text with an Asia language keyboard on iOS #137

xxvvii opened this issue Jun 12, 2016 · 3 comments

Comments

@xxvvii
Copy link

xxvvii commented Jun 12, 2016

I'm working on a project with Asia language keyboard support
When I type some "composed words", the input candidate box just flashing instead of showing the candidates. I've tried both Chinese and Japanese keyboard but no luck.

I think it's an issue caused by onChangeText and following code in GiftedMessenger.js:

   value={this.state.text}

The onChangeText is called every time while user is typing, a new state of text will set back:

  onChangeText(text) {
    this.setState({
      text,
      disabled: text.trim().length <= 0
    });

    this.props.onChangeText(text);
  }

That could cause the above issue, so I need some workaround to fix it.

@dogecrypto
Copy link

This maybe not solved yet.

@dogecrypto
Copy link

dogecrypto commented Jul 6, 2018

sorry, it looks like react-native bug lul.

facebook/react-native#18403

@EliYenn
Copy link

EliYenn commented Jul 18, 2018

RN 0.54.4 inputText Asia language not working
open Custominput.js add code
constructor(props) {
super(props);
this.state = {
text: '',
};
}
shouldComponentUpdate(nextProps,nextState){
if(Platform.OS === 'ios'){
if(this.props.text !== nextState.text){ //nickname为所要获得的TextInput输入值,
return false;
}
}
return true;
};

that can work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants