react-native-sqlite-2
react-native-sqlite-2 copied to clipboard
Inconsistency between openDatabase parameters
I looked at the openDatabase function
function openDatabase(name, version, description, size, callback) {}
and it seems it has one callback parameter which is used either on success or on failure.
On the other hand at test/app.js openDatabase is used as if it has different onSucces and onFailure callbacks.
db = SQLite.openDatabase(
database_name,
database_version,
database_displayname,
database_size,
this.openCB,
this.errorCB
)
It looks like react-native-sqlite-2 becomes incompatible with react-native-sqlite-storage.