alinz / react-native-webview-bridge

React Native Webview with Javascript Bridge
MIT License
1.37k stars 493 forks source link

Current version not support RN 0.28 #111

Open someok opened 8 years ago

someok commented 8 years ago

import should change to:

var React = require('react');
var {PropTypes} = React;
var {
    ActivityIndicatorIOS,
    EdgeInsetsPropType,
    StyleSheet,
    Text,
    View,
    WebView,
    requireNativeComponent,
    UIManager,
    NativeModules: {
        WebViewBridgeManager
    },
    findNodeHandle
} = require('react-native');
saulshanabrook commented 8 years ago

Anyone know of a fork that supports 0.28?

ippy04 commented 8 years ago

I'm using this line in my package.json to work with 0.29

"react-native-webview-bridge": "alinz/react-native-webview-bridge#d06e80dae2c09006"

saulshanabrook commented 8 years ago

@ippy04 Do you have that working with android?

ippy04 commented 8 years ago

My project is iOS only unfortunately...

saulshanabrook commented 8 years ago

Ah ok, I can't get it to work with 0.29 and android.

alinz commented 8 years ago

@saulshanabrook android api for import and exporting a native module has been changed significantly. Going to release 29 soon!

saulshanabrook commented 8 years ago

@alinz Great news! Thank you so much for all your hard work. I almost have window.crypto working on top of this library.

MacKentoch commented 8 years ago

@alinz any news on the upcoming update?

I guess some PR would be also nice in the next version to support latest React Native versions.

If you need help tell us. You bridge is so helpful.

saulshanabrook commented 8 years ago

FYI I got the Web Cryptography API working using this library https://github.com/saulshanabrook/react-native-webview-crypto

pcrouillere commented 7 years ago

Hello, i have the same error with RN 0.31 :( Any idea why ?

Thanks a lot !

alinz commented 7 years ago

@pcrouillere please use the master branch instead.

pcrouillere commented 7 years ago

@alinz I did, thanks :)