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

undefined is not an object RCTWebViewBridgeManager.NavigationType #4

Open
cinder92 opened this issue Jan 9, 2017 · 3 comments
Open

Comments

@cinder92
Copy link

cinder92 commented Jan 9, 2017

Hello, i'm trying to install this plugin, in first place i was installed react-native-webview-bridge because is not installed when you install this plugin, after to that, i'm receiving this error, is there any fix?

captura de pantalla 2017-01-09 a la s 13 42 46

This is my code

...

import HBRichTextEditor from 'react-native-richtext-editor';
import HBToolbar from 'react-native-richtext-editor/HBToolbar';

class NoteContent extends Component {
   render(){
     var bodyForDisplay = "<p>Wow this is an <b>AMAZING</b> demo!</p>";
      return(
           <View style={{flex:1}}>
                    <HBRichTextEditor
			ref="myEditor"
			initialHTML={bodyForDisplay}/>
		    <HBToolbar />
            </View>
      );
   }
}
@geldarhb
Copy link
Collaborator

geldarhb commented Jan 22, 2017

@cinder92 sorry for taking the time to reply.

  1. Did you add the react-native-webview-bridge dependency from our (HoneyBook's) fork or from the main repo?
  2. Try replacing the import for react-native-richtext-editor with this:
    import HBRichTextEditor from 'react-native-richtext-editor/HBRichTextEditor';

Please let me know if that does the trick..

  • Guy

@znafets
Copy link

znafets commented Apr 4, 2017

I got the same issue here, trying to build and run your example code ...
(react-native-webview-bridge is actually part of react-native core)

I dont know if installing this or alinz' bridge will fight with the internal bridge ...
installing either does not help with the issue

using your react-native-webview-bridge and the imports are:

import HBRichTextEditor from 'react-native-richtext-editor/HBRichTextEditor'
import HBToolbar from 'react-native-richtext-editor/HBToolbar'

@longvudai
Copy link

just run: react-native link
it's working for me!

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

4 participants