Closed asiadigitalhub closed 5 years ago
I can confirm I also face the same issue with RN 0.60+ version.
same issue on RN 0.60.4
no pull request for next release
Same on 0.60.0. Any solution?
Hi guys, we are working on this issue and we will try to fix it as soon as possible.
It seems this issue is related to react-native TextInput Component. You may follow related issues : facebook/react-native#26047 and facebook/react-native#25265
same issue on RN 0.59.8
any update?
I am going to close this because as @imnapo said this issue is with react-native library.
its not related with react native , cus it works well with TextInput of react native
use this code <CNRichTextEditor ref={input => this.editor = input} onSelectedTagChanged={() => this.onSelectedTagChanged} onSelectedStyleChanged={() => this.onSelectedStyleChanged} value={this.state.value} style={{ backgroundColor : '#fff'}} styleList={defaultStyles} onValueChanged={() => this.onValueChanged} />
use this code <CNRichTextEditor ref={input => this.editor = input} onSelectedTagChanged={() => this.onSelectedTagChanged} onSelectedStyleChanged={() => this.onSelectedStyleChanged} value={this.state.value} style={{ backgroundColor : '#fff'}} styleList={defaultStyles} onValueChanged={() => this.onValueChanged} />
making fat arrow function will solve the issue
Thanks for this helpful lib. It already working fine with me on RN 0.57.3 but after I update version, this bug is appear. I already debug many times, maybe relate to TextInput on CNTextInput. The onSelectionChange call twice time every type any text input and return different selection value.