Skip to content

Commit

Permalink
[expo-sqlite][web] updated to ignore key on web
Browse files Browse the repository at this point in the history
  • Loading branch information
gurs1kh committed Jun 3, 2020
1 parent c964941 commit 4ed99f1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/expo-sqlite/src/SQLite.web.ts
@@ -1,2 +1,11 @@
export const { openDatabase } = global;
export default { openDatabase };
export function openDatabase(fileInfo, ...args) {
let name = fileInfo;

if (typeof fileInfo !== 'string') {
name = fileInfo.name;
}

global.openDatabase(name, ...args);
}

export default { openDatabase: openDatabaseWeb };

0 comments on commit 4ed99f1

Please sign in to comment.