Hello,
first thank you for your job, it's amazing to use cordova plugin directly in React !
I followed your tutorial and I'm able to use the barcodescanner.
But now, I'm trying to use de sqlite plugin : https://github.com/litehelpers/Cordova-sqlite-storage
I added the plugin but when I try to use it I have this error : undefined is not an objet (evaluating 'cordova.window.sqlitePlugin').
This is my piece of code :
var cordova = require('react-native-cordova-plugin');
class Database {
openDb() {
cordova.window.sqlitePlugin.openDatabase({name: "my.db", location: 2});
}
}
Thanks in advance,
Florian
Hello,
first thank you for your job, it's amazing to use cordova plugin directly in React !
I followed your tutorial and I'm able to use the barcodescanner.
But now, I'm trying to use de sqlite plugin : https://github.com/litehelpers/Cordova-sqlite-storage
I added the plugin but when I try to use it I have this error : undefined is not an objet (evaluating 'cordova.window.sqlitePlugin').
This is my piece of code :
var cordova = require('react-native-cordova-plugin');
class Database {
openDb() {
cordova.window.sqlitePlugin.openDatabase({name: "my.db", location: 2});
}
}
Thanks in advance,
Florian