Coder Social home page Coder Social logo

Comments (9)

alinz avatar alinz commented on July 30, 2024

couple of things,

  • Have you added objecttiv-c folder into the project as instructed in readme file?
  • if you are sending a message from webview to react-native, as soon as you get a message you have to register your callback again similar to issue #3
  • would you provide react-native version and node version that you are using?
  • how would I replicate this issue. Right now I'm using this library at one of my project and so far I have no issue with that.

Let me know

from react-native-webview-bridge.

KevinGrandon avatar KevinGrandon commented on July 30, 2024

Have you added objecttiv-c folder into the project as instructed in readme file?

Yes.

if you are sending a message from webview to react-native, as soon as you get a message you have to register your callback again similar to issue #3

I don't think this is the issue, a I get this issue only from including react-native-webview-bridge (without sending messages yet). I am doing so by running common js modules in babel.

import WebViewBridge from 'react-native-webview-bridge';

would you provide react-native version and node version that you are using?

node: 0.12.4
react-native: 0.6.0

from react-native-webview-bridge.

KevinGrandon avatar KevinGrandon commented on July 30, 2024

As an update: it seems adding all of the individual files (instead of folder) seems to get me a bit further. I recommend updating the documentation, or probably packaging these files into a bundle?

from react-native-webview-bridge.

alinz avatar alinz commented on July 30, 2024

Thanks for helping me out. I've been busy with stuff. By tomorrow I should be ready to read everything and get back to github.
Again thank you,

from react-native-webview-bridge.

AlexJWayne avatar AlexJWayne commented on July 30, 2024

Getting this too. Not sure why but it apears that var require('NativeModules') does not return the WebViewExManager key. So React Native isn't finding the module for export somehow?

from react-native-webview-bridge.

AlexJWayne avatar AlexJWayne commented on July 30, 2024

Yeah so I'm not enough of an XCode wizard to know what's really going on, but I did get it to work if I manually added all the WebViewEx*.m files to the "Compile Sources" in "Build Phases". though it's a bit weird as those files are now double referenced in my project tree.

from react-native-webview-bridge.

alinz avatar alinz commented on July 30, 2024

I think I need to make it as a bundle project. I will get back to you. But for now, keep working with this hack solution until I get everything sorted.

btw, thanks for reporting.

from react-native-webview-bridge.

alinz avatar alinz commented on July 30, 2024

Ok, I push new version and I cleaned up some part of the code. It should be good for version 0.6 and above.

I have also changed the version number matched with react-native. In this way it would be a lot easier for everyone to load only specific version.

from react-native-webview-bridge.

alinz avatar alinz commented on July 30, 2024

@Squeegy as of 0.6, you should not use require('NativeModules') directly. You have to use:

var React = require('react-native');
var {
  NativeModules: {
    WebViewExManager
  }
} = React

I have also made new version with a new technique which can mostly solve all these problem. Take a look at it and let me know if you still have that problem.

from react-native-webview-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.