1
I am developing an application that needs a database, I chose Sqlite.
As I am new and have no experience in Sqlite I have come to ask you: How can I create a database with Sqlite and React Native?
1
I am developing an application that needs a database, I chose Sqlite.
As I am new and have no experience in Sqlite I have come to ask you: How can I create a database with Sqlite and React Native?
2
If you are developing an application using the framework React Native and want to persist data using Sqlite directly, perhaps, I say perhaps, not so interesting as it has to explore native features of the devices on their particular platforms. If your application is hybrid, this will make it difficult because each platform has its peculiarities. It would be something like reinvent the wheel, as many say. Mário Quintana says "Laziness is the mother of progress. If man had not been lazy to walk, he would not have invented the wheel".
But there are some plugins open source that allows you to manipulate Sqlite database using Javascript. Take a look at these:
If you want to redo the wheel more efficiently, you can take as a basis these same plugins and improve them or even remake them.
0
How about taking a look at this page about the Asyncstorage API? https://facebook.github.io/react-native/docs/asyncstorage.html
You can use Asyncstorage to store data in key-value pairs. According to the documentation, the API implementation uses Sqlite (or Rocksdb) if it is Android.
Browser other questions tagged android sqlite react-native
You are not signed in. Login or sign up in order to post.