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

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

webview has been removed from react native #171

Open bamaarintoko opened 5 years ago

ShankarNara commented 5 years ago

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?

Duya3fithou commented 5 years ago

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

Ivan-Stashak-CardinalPeak commented 5 years ago

I'm getting the same.

cmcaboy commented 5 years ago

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.

srhtylmz19 commented 4 years ago

any update?

harleenarora commented 4 years ago

any update?

jb- commented 4 years ago

@harleenarora @srhtylmz19 @cmcaboy @Ivan-Stashak-CardinalPeak @Duya3fithou @ShankarNara @bamaarintoko I fixed the problem. https://github.com/jb-/react-native-zss-rich-text-editor