imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
185 stars 72 forks source link

react-native-cn-quill is not workiing on react-native-web #127

Open Roucoz opened 9 months ago

Roucoz commented 9 months ago

Hello i have tried to add [react-native-cn-quill] in react native its working 100% fine. I have added the react-native-web, but its not working

the toolbar was not appearing, so i have added a custom tool bar, and i have succeeded to let whole functions work fine

but what its still missing is the getContents(), getHtml, getSelection, getLenght

the setText, and insertText they are working normally, but the postMessages are not

the strange issue is that i can see all of these messages inside the log message
image

this message is comming from here image

It will be very usefull if we can fix that. thank you in advance

eemebarbe commented 8 months ago

The WebView component doesnt support React-Native-Web. It seems like making this library compatible with web would be pretty straightforward, but nothing in their documentation suggests that it is supported currently.

JacobDel commented 7 months ago

Make a separate file for web (RichEditor.tsx and RichEditor.web.tsx) Use react-quill for your web file