You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm stuck on using react-native-sqlite-storage, whenever I start initially open a new database as was mentioned in the documentation usage, I get this error:
TypeError: Cannot read properties of undefined (reading 'open').
this is my code so far.
import React, {useEffect} from 'react';
import {View, Text} from 'react-native';
import SQLite from 'react-native-sqlite-storage';
This will post it in a code block with javascript syntax highlighting and make it much easier to read
Additionally, when making react native issues, please provide which device type you're experiencing the issue on. I'm guessing Windows, and if so, have you found my pull request which fixes this?
Additionally, this repo is dead, and I think I might be the only person still answering questions here.
I'm stuck on using react-native-sqlite-storage, whenever I start initially open a new database as was mentioned in the documentation usage, I get this error:
TypeError: Cannot read properties of undefined (reading 'open').
this is my code so far.
import React, {useEffect} from 'react';
import {View, Text} from 'react-native';
import SQLite from 'react-native-sqlite-storage';
const App = () => {
try {
SQLite.openDatabase({name: 'UserDatabase', location: 'default'});
} catch (error) {
console.log(error);
}
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
SQLite Database Example
);
};
export default App;
any solutions for this ?
The text was updated successfully, but these errors were encountered: