Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webview has been removed from react native #171

Open
bamaarintoko opened this issue Jul 5, 2019 · 7 comments
Open

webview has been removed from react native #171

bamaarintoko opened this issue Jul 5, 2019 · 7 comments

Comments

@bamaarintoko
Copy link

No description provided.

@ShankarNara
Copy link

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
Copy link

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

@Ivan-Stashak-CardinalPeak

I'm getting the same.

@cmcaboy
Copy link

cmcaboy commented Aug 6, 2019

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
Copy link

any update?

1 similar comment
@harleenarora
Copy link

any update?

@jb-
Copy link

jb- commented Dec 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants