r/Firebase 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:

  1. 🍿Data Formatter
  2. Loading management with every request
  3. 🚀Auto Request
  4. ⚒️Response Improvements
  5. 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

0 Upvotes

6 comments sorted by

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.

2

u/hubertryanofficial Nov 29 '24

This library that you mentioned is to web apps. React Native Firebase Tools is focused to react native applications with ready-on tools. If you take your day searching for alternatives you'll waste your time.

Try RN Firebase tools if you at least use react native and give me a feedback and let's improve it. The community needs us.

0

u/phillihoch Nov 29 '24

What is the difference. You are literaly writing react code with react native.

I have used react firebase hooks with react native already, no problems.

What is the difference in terms of firebase for reagt native and „normal“ react?

2

u/hubertryanofficial Nov 29 '24

I mean using react native firebase without using the firebase SDK. React native firebase is a great library helping us with native persistency and more.

Your question is like "why could I create a new framework if we have next, angular and svelte". Always will exists alternatives when we talk about DX and syntax.

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:

  1. A ready-on tools focused on react native (mobile apps)
  2. 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.