What’s the Best React Native Storage Option? 🧐
2023 ж. 18 Қыр.
28 719 Рет қаралды
🔥 Learn React Native FAST: galaxies.dev
What’s the best way to store data in React Native apps? Let’s talk about your storage options for both local data and remote databases!
#############################
❤️ You can also find me on:
Twitter: / schlimmson
Instagram: / simongrimm_
#############################
🪐 Become a React Native Developer with Galaxies.dev!
5:30 the video begins (without expo!) CLI rules!
You mention costs involved when using Realm - I think it would be fair to have also mentioned that this is only when you actually perform sync. It's a perfectly capable open-source local-first database, that developers can use, free of charge, if they don't need to sync the data between devices. (full disclosure - I work on the Realm JS team)
I think the main problem with Realm for react native is an incomplete and inconsistent documentation and a typescript support that could be better. I admire its power but I quickly hit the wall every time I want to do something.
Great, this content was helpful! Thanks Simon.
Glad you enjoyed it!
This is very useful information, thank you for sharing.
Very helpful. I have implemented non-consumable in-app purchase easily through this video. thanks.
Glad it was helpful!
Hey Simon, what do you recommened for a gamification app, where the user collect points? And level-up? Would also be a good idea for a video :) thank you for your content.
Amazing review! It would be great to see similar comparison for other packages.
Noted!
Thank you, very informative
You are welcome!
could you cover react-relay-offline ? it seems like the best option for offline storage plus graphql communication with the server (it can batch mutations while offline, for instance, something other clients such as URQL cannot)
hey, thank you so much for your videos sir. Please make some videos on expo filesystem and deep link. cant find any on youtube.
I just have to like this before watch; as I always get better 😊
Thank you mate!
Great information! I am using expo-sqlite, but with the new 14.0.3 update suitable for the Expo 51 sdk, I am facing an error related to read and write issues when doing an insert into a pre-populated database. Look at this: error... [Error: Call to function 'NativeStatement.finalizeAsync' has been rejected. → Caused by: Error code: attempt to write a readonly database] Do you have any idea about this mistake ?
A very worthy mention is ElectricSQL with supabase. It's 0$ to start and infinitely scalable also. Works well with all the supabase ecosystem.
I was very interested by this but there seems to be very little information online regarding the usage of the two. If you have anything to share about using these together, please do!
Hello simon, please one tutorial offline async db!.
for my side project i went with sqlite and will implement my own sync at some point. watermelon seemed like too much overhead for my simple app, and i didnt want to use nosql so pouchdb and realm are out of the picture. ill use mmkv if i need local storage
I'm curious why you don't want to use a nosql solution? mmkv isn't sql either?
Just a question...why do you suggest to start with expo though? Asking because bare rn allows more manual control over the app
When you’re just getting started, “control” isn’t nearly as important as ease of use. Expo is unmatched for ease of use.
I did a video on that topic before: kzhead.info/sun/pJGse6erqpV_pps/bejne.html&ab_channel=SimonGrimm
@@Tyrone-Ward yeah that's true. However there are issues with installing some rn/expo libraries even at the beginning. In those cases, control is necessary right? I'm just asking for opinions on this.
@@sohamdas4343In deed expo can give you that control by “ejecting” the project that will create two native projects with everything in place, you will loose some features like running with the Expo Go app but gain fine control, it’s more about when and why you want that level of control, with that in mind I would start with Expo for faster prototyping and eject if I need very specific native capabilities, the only reason I would start with React Native is, if I need to consume legacy libraries or specific ones like Firebase
do people use mongoose in native?
Can you do supabase offline-first approach? is it even possible?
Good question, will have to look into that!
when will you make for ionic?
I already have similar videos for Ionic :)
Does react native notifications now work in Expo?
Sure!
So which solutions is best for storing video file for offline viewing
Filesystem should be used to store files!
@@galaxies_dev most of the contents I see talk about how to use it to do the actual downloading. But what I need is KZhead like offline download
REALM!
I wonder how to implement multilevel comment in a list in React Native Sir😊
Hmm probably some sort of tree component?
@@galaxies_dev the comment that can be commented by others
How can supabase be left out here
My bad - but more RN Supabase content coming soon!
Supabase bro
💯
No love for supabase Simon?!
Haha love it, thought it was still considered too niche 😂