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

webview has been removed from react native

Open bamaarintoko opened this issue 6 years ago • 7 comments

bamaarintoko avatar Jul 05 '19 15:07 bamaarintoko

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! // </Text> // </View>

        <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?

ShankarNara avatar Jul 08 '19 13:07 ShankarNara

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

Duya3fithou avatar Jul 15 '19 10:07 Duya3fithou

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.

cmcaboy avatar Aug 06 '19 18:08 cmcaboy

any update?

srhtylmz19 avatar Sep 07 '19 12:09 srhtylmz19

any update?

harleenarora avatar Dec 17 '19 12:12 harleenarora

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

jb- avatar Dec 22 '19 13:12 jb-