RichTextEditor collapsing on Android
See original GitHub issueDescription: It looks like when editor loses focus it collapses to 0px height. This happens by pressing the Hardware back button on android. It also sometimes happens when I press focus an other input and then remove focus from that input.
This doesnt affect iOS.
dependancies: react: 17.0.1 (same for 16.13.1) react-native: 0.63.4 react-native-pell-rich-editor: 1.5.5 (same for 1.3.0) (latest 1.6.x version crashes my app when trying to load an image that does’nt exist) react-native-webview: 9.0.2 (tried latest and errors with onMessage something) react-native-navigation: 6.12.2 (editor is inside a modal from this package)
Steps to reproduce:
- Open a modal
- focus editor
- press Device back button
Additional information: This problem appeared after upgrading our app from react-native 0.61 to 0.63.
Component has nothing really complicated
<RichTextEditor
ref={r => (this.richtext = r)}
style={[t.mL1, t.flex1, t.h16, t.pT50]}
initialContentHTML={this.initialContent}
/>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
This seems to be a problem with react-native-webview. I used the following to fix it.
I this this is because very long strings in between html tags