Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency between openDatabase parameters #77

Open
likern opened this issue Feb 26, 2020 · 0 comments
Open

Inconsistency between openDatabase parameters #77

likern opened this issue Feb 26, 2020 · 0 comments

Comments

@likern
Copy link

likern commented Feb 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant