diff --git a/code/16-sqlite-getting-started/util/database.js b/code/16-sqlite-getting-started/util/database.js index 75997adf..aa27a0cb 100644 --- a/code/16-sqlite-getting-started/util/database.js +++ b/code/16-sqlite-getting-started/util/database.js @@ -1,4 +1,6 @@ import * as SQLite from 'expo-sqlite'; +// openDatabase has been removed from the stable version of expo-sqlite +//import * as SQLite from 'expo-sqlite/legacy'; const database = SQLite.openDatabase('places.db'); diff --git a/code/17-inserting-places-into-the-db/util/database.js b/code/17-inserting-places-into-the-db/util/database.js index 63ec073c..2d4f27f9 100644 --- a/code/17-inserting-places-into-the-db/util/database.js +++ b/code/17-inserting-places-into-the-db/util/database.js @@ -1,4 +1,6 @@ import * as SQLite from 'expo-sqlite'; +// openDatabase has been removed from the stable version of expo-sqlite +//import * as SQLite from 'expo-sqlite/legacy'; const database = SQLite.openDatabase('places.db'); diff --git a/code/18-fetching-places-from-the-database/util/database.js b/code/18-fetching-places-from-the-database/util/database.js index 2ffa09cd..0df5b539 100644 --- a/code/18-fetching-places-from-the-database/util/database.js +++ b/code/18-fetching-places-from-the-database/util/database.js @@ -1,4 +1,6 @@ import * as SQLite from 'expo-sqlite'; +// openDatabase has been removed from the stable version of expo-sqlite +//import * as SQLite from 'expo-sqlite/legacy'; import { Place } from '../models/place'; diff --git a/code/19-fetching-place-detail-data/util/database.js b/code/19-fetching-place-detail-data/util/database.js index 6249575c..bb0e321b 100644 --- a/code/19-fetching-place-detail-data/util/database.js +++ b/code/19-fetching-place-detail-data/util/database.js @@ -1,4 +1,6 @@ import * as SQLite from 'expo-sqlite'; +// openDatabase has been removed from the stable version of expo-sqlite +//import * as SQLite from 'expo-sqlite/legacy'; import { Place } from '../models/place'; diff --git a/code/20-finished/util/database.js b/code/20-finished/util/database.js index 1abd9bc1..0985cb9e 100644 --- a/code/20-finished/util/database.js +++ b/code/20-finished/util/database.js @@ -1,4 +1,6 @@ import * as SQLite from 'expo-sqlite'; +// openDatabase has been removed from the stable version of expo-sqlite +//import * as SQLite from 'expo-sqlite/legacy'; import { Place } from '../models/place';