react-native-sqlite-2 icon indicating copy to clipboard operation
react-native-sqlite-2 copied to clipboard

Inconsistency between openDatabase parameters

Open likern opened this issue 5 years ago • 0 comments

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.

likern avatar Feb 26 '20 18:02 likern