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

webview has been removed from react native

bamaarintoko opened this issue ยท 7 comments

webview has been removed from react native

I get the same problem .
I have imported the library
I created a RichTextEditor tag and initialized ref with r

import React,{Component} from 'react';
import { View ,Text} from 'react-native';
import {RichTextEditor} from 'react-native-zss-rich-text-editor';

class Editor extends Component{
render(){
return (
// <View style= {{flex: 1, alignItems: 'center' ,justifyContent: 'center' }}>
// <Text style= {{fontSize: 48}}>
// SUCCESS!
//
//

        <RichTextEditor 
            ref={(r) => this.richText = r}
            initialTitleHTML={'Title!!'}
            initialContentHTML={'Hello <b>World</b> <p>this is a new paragraph</p> <p>this is another new paragraph</p>'}
            editorInitializedCallback={() => this.onEditorInitialized()}
        />
    );
}

};

export default Editor;

Error :
ExceptionsManager.js:86 WebView has been removed from React Native. It can now be installed and imported from 'react-native-webview' instead of 'react-native'

Is there something to be changed in the codebase of the library?

Same me.
I think because React-native update to 0.60.3 version.

I'm getting the same.

The react native team at Facebook no longer manages the webview component. It is now managed by the community. Unfortunately, this library has not updated their dependencies to reflect this change. As a result, it won't work.

You really have 2 options:

  1. Downgrade to a version of react native that still supports this library.
  2. Find another rich text editor.

any update?

any update?