Hi,
I am having the error undefined not an object while calling SQLite.openDatabase()
I followed the example of SQLite from https://github.com/expo/sqlite-example/blob/master/main.js
My Code:
import Expo, { SQLite } from 'expo';
const dataBase = SQLite.openDatabase({name: 'db.db'});
Error I got:
Package.json:
"dependencies": {
"@shoutem/theme": "^0.10.0",
"color": "0.11.3",
"expo": "15.1.2",
"get-urls": "^7.0.0",
"global": "^4.3.2",
"lodash": "^4.13.1",
"moment": "2.13.0",
"native-base": "2.1.0-rc.2",
"react": "~15.4.0",
"react-native": "0.42.3",
"react-native-actionsheet": "^2.2.2",
"react-native-animatable": "0.6.1",
"react-native-button": "1.6.0",
"react-native-collapsible": "^0.9.0",
"react-native-communications": "^2.2.1",
"react-native-easy-grid": "0.1.7",
"react-native-gifted-spinner": "0.0.4",
"react-native-google-maps-directions": "^1.1.2",
"react-native-hideable-view": "^1.0.3",
"react-native-hyperlink": "0.0.11",
"react-native-lightbox": "0.6.0",
"react-native-list-popover": "1.0.5",
"react-native-modalbox": "1.3.4",
"react-native-router-flux": "*",
"react-native-scrollable-tab-view": "0.7.2",
"react-native-search-bar": "3.0.0",
"react-native-simple-modal": "3.0.4",
"react-native-slide-down-panel": "1.0.6",
"react-native-swiper": "1.5.4",
"react-native-vector-icons": "^4.3.0",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"redux-persist": "^3.2.2",
"redux-thunk": "^2.1.0",
"remote-redux-devtools": "^0.3.3",
"remote-redux-devtools-on-debugger": "^0.4.6",
"yarn": "^1.0.2"
}
Please help!.