Hi,
I have started work to get this module working with RN 4.6, see here:
mribbons@2eebb79
The Java side seems to initialise OK, I have got around null reference exceptions, the commit is self explanatory.
I am now having an issue with the cordova.js file:
error: bundling failed: "Unable to resolve module `cordova/utils` from
`d:\\myProject\\node_modules\\react-native-cordova-plugin\\platforms\\android\\assets\\www\\cordova.js`:
Module does not exist in
the module map\n\nThis might be related to
https://github.com/facebook/react-native/issues/4968\n
To resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n
3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."
I have checked the github link and it is unrelated.
It seems that cordova/utils is defined later in the file. If I remove
var utils = require('cordova/utils');
It seems to work, but then has similar issues with all of the other requires, all of which are defined in the file apart from cordova/plugin_list.
It seems as though the cordova.define() calls are failing for some reason,
I'm wondering if this is to do with RN changes, or the cordova.js file itself.
I have tried rebuilding the file to no avail.
At first I was using this plugin:
cordova-plugin-cipherlab-rs30
but I have since removed it and I still get the same issues.