react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

Multiple instances of text editor on same screen causes crash on android in release apk

Open patoledevashree opened this issue 4 years ago • 5 comments
trafficstars

Screenshot_2021-06-07-17-25-39-55

I am using multiple text editor for showing the user answers in a single screen the app crashes on press of hardware back button.

react-native-webview:- 11.4.3 react-native-pell-rich-editor:^1.8.5 react-native: 0.63.2

patoledevashree avatar Jun 07 '21 11:06 patoledevashree

@patoledevashree any solution on this ?

Nilesh8451 avatar Jun 16 '21 05:06 Nilesh8451

Hello I found one solution on this .

We can add android: hardwareAccelerated="false" Inside android manifest file. But this approach affect performance on some devices.

I request @stulip to make a change in webview like androidHardwareAccelerationDisabled

It will fix this problem. Please kindly refer this https://stackoverflow.com/questions/56553663/react-native-null-pointer-dereference-after-navigating-to-from-a-page-containi

Nilesh8451 avatar Jun 22 '21 08:06 Nilesh8451

@Nilesh8451 It worked for me but there is a performance issue after adding in manifest

I request author to please make changes suggested by Nilesh in webview

patoledevashree avatar Jun 25 '21 10:06 patoledevashree

androidHardwareAccelerationDisabled is an attribute of webview, just pass in directly

stulip avatar Aug 24 '21 07:08 stulip

androidHardwareAccelerationDisabled is deprecated.

I used the following to fix the problem.

<RichEditor 
  .... 
  androidLayerType="software"
/>

Bilal-Abdeen avatar Apr 29 '22 02:04 Bilal-Abdeen