alinz / react-native-webview-bridge

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

PropType.func undefined and React.createClass undefined in React 16 #267

Closed winadiw closed 5 years ago

winadiw commented 6 years ago

For those of you ran into trouble using latest React and React Native, please modify the code index.android.js and index.ios.js (/node_modules/react-native-webview-bridge/webview-bridge/index.android.js && /node_modules/react-native-webview-bridge/webview-bridge/index.ios.js) as follow:

And you are done. But please update the package if possible.

jeanniton-mnr commented 5 years ago

Thanks! It worked for me @winadiw

winadiw commented 5 years ago

@jeanniton-mnr you are welcome. Now i stopped using this package and turns out build in react-native webview already had this feature, it is onMessage props.

jeanniton-mnr commented 5 years ago

Ok thank you for letting me know

chansuke commented 5 years ago

close this