Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
@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)
- Super expression error.. HOT 2
- RCTWebViewBridge
- Uncaught TypeError: WebViewBridge.onMessage is not a function
- injectedJavaScript not working on android 5.1 and below
- hi in android it can not run HOT 1
- getting warning
- Accessing View Manager Configs Directly is No Longer Supported
- Rendering HTML file HOT 1
- Question about Browser Version
- Use UIManager.getViewManagerConfig('RCTWebViewBridge') HOT 1
- 'React/RCTViewManager.h' file not found HOT 3
- Not working with react-native 0.6 HOT 3
- onBridgeMessage method not working
- Is this repo officially inactive ? HOT 4
- android app crash while run the app HOT 8
- WebView has been removed HOT 3
- Update to WKWebView for iOS
- Release version 0.40.2 HOT 1
- WebView IOS error HOT 2
- Could not find method compile() for arguments [project ':react-native-webview-bridge'] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-webview-bridge.