Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Undefined is not an object #4

Description

@FSpierckel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions