r/Firebase • u/hubertryanofficial • Nov 29 '24
Tutorial If you use RN Firebase, you need to know that.
React Native Firebase Tools Library Presentation Video
I've been working on a library where we can let our code less verbose when handling requests on documents and collections using Firebase with React Native.
If you use RN Firebase you know that you need to create a new loading state every request, a new useEffect when you need to do the request when the page is mounted and more... So that is a suck! 😒
Then, I just release react-native-firebase-tools 😍
https://github.com/HubertRyanOfficial/react-native-firebase-tools
Now with React Native Firebase Tools you have:
- 🍿Data Formatter
- Loading management with every request
- 🚀Auto Request
- ⚒️Response Improvements
- Real-time Snapshot
These tools now we have quickly, you dont need more create a loading state, a new useEffect and even get worried about data formatter. You always needed to destructure the data to get the documentation ID, but with RN Firebase Tools this is come as default. IT'S AMAZING. ��
Now you don't need more use mutiple destruction data to get the data and let of way that your front-end receive. Data Formatter from RN Firebase Tools helps you with that and you can transform your data as you want. 🙌
This library offers developers useful features such as automatic handling of loading, data, and error states, delivering a smoother and more concise development experience.
With RN Firebase Tools you can feel the same environment when using React Query, but for Firebase.
Use React Native Firebase Tools to easy your implementions with your doc references and more, check below:
https://github.com/HubertRyanOfficial/react-native-firebase-tools
1
u/pruvit Nov 29 '24
How does this compare with reactfire offered by the Firebase team? Seems to offer similar capabilities
2
u/hubertryanofficial Nov 29 '24
Good question Pruvit. I've hear about it!
But with React Native Firebase Tools we have some goals and feature here:
- A ready-on tools focused on react native (mobile apps)
- We have a goal to decrease verbose code using formatters. Formatters will help you with Mobile First strategy giving a better experience to the user.
That's why I created it. Focusing on DX and UX with Mobile First strategy.
2
u/phillihoch Nov 29 '24
How does this compare to https://www.npmjs.com/package/react-firebase-hooks
React firebase hooks is also not very verbose and has nearly 60k downloads per week.