You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
run npm install --save create-react-class
add code in the top of the file, after var React = require('react'); React.createClass = require('create-react-class'); var PropTypes = require('prop-types');
Find var { PropTypes } = React;, change it into var { PropTypes } = PropTypes;
And you are done. But please update the package if possible.
The text was updated successfully, but these errors were encountered:
@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.
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:run
npm install --save create-react-class
add code in the top of the file, after
var React = require('react');
React.createClass = require('create-react-class');
var PropTypes = require('prop-types');
Find
var { PropTypes } = React;
, change it intovar { PropTypes } = PropTypes;
And you are done. But please update the package if possible.
The text was updated successfully, but these errors were encountered: