-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to access sqlite from react native windows #10431
Comments
This library is supposed to work on Windows, and to my knowledge it's the only sqlite library that supports Windows (See this thread: #10409). There is certainly more regular traffic on the async-storage library, if you don't specifically need sqlite. But if |
As an end user struggling with this very thing, I think the problem here is rooted in people not understanding how to include the db file properly, which is not an issue with the sqlite module. Having no UWP or VS background, I have found the following questions nearly impossible to figure out:
I've tried everything I could google my way to, but so far have been fully unsuccessful. Some additional documentation for these questions would be greatly appreciated |
It sounds like what you're looking for and not finding is the information for how to include non-image files in a way that'll get bundled and included with your project. Does that sound correct? |
Correct. I have now solved it, but finding it was a bit of a nightmare. Some easier-to-find documentation would be wonderful for the next poor soul. Let me know if you would like me to create a new issue or discussion for this. I can't find all the links I used to cite my sources, but...
|
I am using the 'react-native-sqlite-storage' module to fetch data from an existing sqlite db into a react-native windows application. I have followed the steps as mentioned for windows platform here. But, I am not able to open database using the openDatabase() API. Although, it mentions that the module works for Windows, but looking at the parameters of the API and code, I see references to only iOS/Android. Does this library does not work for Windows application to access sqlite db? If not, which is the best library to use to access sqlite from react native in windows.
The text was updated successfully, but these errors were encountered: