wix-incubator / react-native-zss-rich-text-editor

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 311 forks source link

Running slowly on Android #154

Open ColdStar007 opened 5 years ago

ColdStar007 commented 5 years ago

It works fine on iOS, but it runs very slowly on Android.

minhphung210 commented 5 years ago

same issue

antony-meunier commented 5 years ago

Same here !

arneson commented 5 years ago

@ColdStar007 @minhphung210 @antony-meunier There is an infinite loop running in the android version, it has been resolved in a few different forks but there is little to no activity in this repo unfortunately.

You can depend on the tag 1.1.1 in my fork of this repo which has a fix.

https://github.com/arneson/react-native-zss-rich-text-editor.git#1.1.1

minhphung210 commented 5 years ago

@arneson arn your solution not work for me :( thank for reply

arneson commented 5 years ago

That's unfortunate. Have you made sure to do a clean native build before testing? As the problem is in the editor.html file in the library which is only copied over on build, not reload.

export-mike commented 5 years ago

@arneson keen to make a hard fork? I'm having issues. lets collaborate I have a fork too: https://github.com/export-mike/react-native-zss-rich-text-editor

I'm keen to change this to use the recommended react-native-web-view which is faster for ios and also has window.postMessage working without hacks.

export-mike commented 5 years ago

@arneson where is the change to remove the infinite loop? https://github.com/arneson/react-native-zss-rich-text-editor/commits/master/src/editor.html

arneson commented 5 years ago

@export-mike

Yeah, I'd love to get this library working properly again. Would love to collaborate.

It's the commit with message fix getCaretPosition.

https://github.com/arneson/react-native-zss-rich-text-editor/commit/7704a0efdce8f0a41f26526c5a4558a6a69c735b#diff-5764eca5893a91bd5fb61afbae89595d

Worth noting is that I did not write that commit but pulled it from charpeni 's fork.

export-mike commented 5 years ago

ok cool sounds great.

basically the fork of the editor I'm using has the ability to render custom buttons. I need to change it to use the react-native-web-view

I can pull in this infinite loop fix manually. what other changes have you introduced?

what functionality are you working to support/fix?

arneson commented 5 years ago

Working on supporting the toolbar which behaves like a fucking tool in the current version.

But totally agree we need a new hard fork. I can create a fork and add you as a collab, that sound good?

14 dec. 2018 kl. 16:59 skrev Mike James notifications@github.com:

ok cool sounds great.

basically the fork of the editor I'm using has the ability to render custom buttons. I need to change it to use the react-native-web-view

I can pull in this infinite loop fix manually. what other changes have you introduced?

what functionality are you working to support/fix?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

export-mike commented 5 years ago

Yeah great. basically the work I have done so far allows custom components to be rendered.

export-mike commented 5 years ago

Bottom 2 points need to be completed.

arneson commented 5 years ago

@export-mike Don't think I've seen the last one. Could you send over a screen shot?

export-mike commented 5 years ago

@arneson https://join.slack.com/t/reactnativezs-ash8421/shared_invite/enQtNTA1NTMxNzE4NDY3LWM3MzQwM2ZkZTEwZjRhMGYyMDBmZTY2ZmMyYmY1ZGU0NGE4OGVjN2M4NTY1MDkyMzFmNzAxMDZlMmU2YmJlYTc

Let's move to slack

arneson commented 5 years ago

Saw that link way too late. It’s dead now :) @export-mike

export-mike commented 5 years ago

@arneson https://join.slack.com/t/reactnativezs-ash8421/shared_invite/enQtNTA1NTMxNzE4NDY3LWM3MzQwM2ZkZTEwZjRhMGYyMDBmZTY2ZmMyYmY1ZGU0NGE4OGVjN2M4NTY1MDkyMzFmNzAxMDZlMmU2YmJlYTc

ethanyuwang commented 5 years ago

@arneson Thanks your fork worked for me!

ashokkumar88 commented 5 years ago

@arneson your version supports hashtag and mentions?

arneson commented 5 years ago

@ashokkumar88 I have not added that functionality, so if it exists in original package then yes, otherwise no.

export-mike commented 4 years ago

looks like UIWebView has been deprecated. I'll be updating https://github.com/export-mike/react-native-zss-rich-text-editor to use WKWebView.