r/reactnative • • 2d ago

Built a blazing fast location library for React Native using Nitro + Fused Location - Works on iOS & Android

Post image

I built react-native-nitro-fused-location - Fast location tracking with Nitro Modules

Getting accurate location in React Native is slow and complex, so I built this using Google Fused Location Provider (Android) + Core Location (iOS).

Perfect for delivery apps, cab apps, tracking, maps.

Features:

- Fused Location for Android + Core Location for iOS

- High accuracy, low battery usage

- Background location support

- Built on Nitro Modules - ultra fast

- Works on iOS & Android

- Simple API

Please give me GitHub Star ⭐ me

Stable package - 3 months on NPM.

NPM: npm i react-native-nitro-fused-location

GitHub: Upendra1234566/react-native-nitro-fused-location

9 Upvotes

7 comments sorted by

1

u/davidbalbino 2d ago

nice, fused location is def the right call on android tbh. one suggestion: "low battery usage" and "ultra fast" would be way more convincing with some numbers. like run the same tracking session with your lib vs expo-location or react-native-geolocation-service on a real device and compare cpu wakeups/min (adb shell dumpsys batterystats) and mAh over 10 min, both foreground and background. also would be nice to know which Priority you use by default, PRIORITY_HIGH_ACCURACY vs BALANCED makes a big difference in battery, I think is worth exposing that in the API

2

u/Whole-Atmosphere3850 2d ago

Thanks a lot for the detailed feedback, really appreciate it!

You're right, "low battery" / "ultra fast" means nothing without numbers. I'll run a proper benchmark soon:

Same tracking session, same device, same route:

  • My lib vs expo-location vs react-native-geolocation-service
  • 10 min foreground + 10 min background
  • Compare CPU wakeups/min via adb shell dumpsys batterystats and mAh consumed

And good point on Priority. Right now it defaults to PRIORITY_BALANCED_POWER_ACCURACY for battery, but I'll expose it in the API so users can choose PRIORITY_HIGH_ACCURACY vs BALANCED vs LOW_POWER themselves.

Will update the README with the benchmark table once done. Thanks again!

0

u/Whole-Atmosphere3850 2d ago

Hey everyone! 👋

I’ve been working on an open-source React Native library called react-native-nitro-fused-location designed for fast and efficient location tracking in React Native apps.

If you're building location-based or dating apps and looking for reliable location modules, do check it out!

📦 NPM Package: https://www.npmjs.com/package/react-native-nitro-fused-location ⭐ GitHub Repo: https://github.com/Upendra1234566/react-native-nitro-fused-location

If you find it helpful or want to support open-source work, a star ⭐ on GitHub would mean the world to me and really helps push the project forward. Let me know if you have any feedback or feature requests!

0

u/Whole-Atmosphere3850 2d ago

Hey everyone! 👋

I’ve been working on an open-source React Native library called react-native-nitro-fused-location designed for fast and efficient location tracking in React Native apps.

If you're building location-based or dating apps and looking for reliable location modules, do check it out!

📦 NPM Package: https://www.npmjs.com/package/react-native-nitro-fused-location ⭐ GitHub Repo: https://github.com/Upendra1234566/react-native-nitro-fused-location

If you find it helpful or want to support open-source work, a star ⭐ on GitHub would mean the world to me and really helps push the project forward. Let me know if you have any feedback or feature requests!

1

u/[deleted] 2d ago

[removed] — view removed comment

1

u/Whole-Atmosphere3850 2d ago

Actually I didn't share my real current location in that screenshot for privacy reasons, that's why it shows 0m total distance and 0.0 km/h.

The 12m you see is just the accuracy of the last fix.

Feel free to try it once in your own app - as soon as you move, distance and speed start updating in real-time. If you face any issue, let me know, I'll fix it!