frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: I rewrote an outdated React Native map clustering library

https://github.com/suwi-lanji/rn-maps-clustering
27•hadat•8h ago
Hey Hacker News,

I'm a long-time lurker and wanted to share a project I just finished building.

Like many React Native developers, I needed to add marker clustering to a map in my app. The most popular library for this, react-native-maps-clustering, was fantastic in its day but has become outdated and no longer works with modern versions of Expo, React Native, and their dependencies.

After hitting a wall of compatibility issues, I decided to take on the challenge of rewriting it from the ground up, focusing on a modern toolchain and a better developer experience.

The journey was a lot more challenging than I anticipated. It turned into a deep dive into solving dependency hell with different versions of @types/react, wrestling with build tool configurations for pnpm, bob, and ESLint, and ensuring everything was strictly typed with TypeScript. It felt like a classic case of yak shaving, but I was determined to create a solution that "just works" for developers today.

The result is RN Super Cluster, a performant, fully-typed, and easy-to-use clustering library for react-native-maps.

What it does: It provides a <ClusteredMapView /> component that you can use as a drop-in replacement for the standard <MapView />. Any <Marker /> components you place inside will be automatically clustered.

Key Features:

    Modern & Maintained: Built with a modern toolchain and designed to be actively maintained.

    Fully-Typed: Written entirely in TypeScript to prevent common errors and improve autocompletion.

    High-Performance: Uses supercluster under the hood for extremely fast geospatial clustering.

    Spiderfier: At the maximum zoom level, overlapping markers automatically "spiderfy" (spread out on a spiral) so they can be individually tapped.

    Customizable: You can provide your own custom components for rendering clusters, and callbacks for handling press events.
This was a passion project born out of necessity, and I hope it can save other React Native developers the headaches I went through.

I would love to get your feedback, and contributions are more than welcome!

GitHub: https://github.com/suwi-lanji/rn-maps-clustering NPM: https://www.npmjs.com/package/rn-maps-clustering

Thanks for checking it out!

Comments

belchiorb•7h ago
Looks nice! As a suggestion, it would be easier to understand what this is about by adding a small video/GIF of the library in action.

Took me some time to understand what it was about.

hadat•5h ago
Will do so, thank you
DanielHB•6h ago
I actually did a project doing clustering like that around 2018 using react native, we quickly realized we had to drop down to native for the maps. It was a huge pain in the ass because of the vastly different implementations of google/apple maps and dealing with bridging between native and react parts of the code.

Your project would have solved about 2-3 months of work and ongoing maintenance of 2 devs we had back then. The project is not around anymore but I will keep it in mind if I ever do something similar again.

hadat•5h ago
Thank you very much for considering using it
kevg123•4h ago
Cool stuff, especially spiderfier. What's your opinion of expo-maps? https://expo.dev/blog/introducing-expo-maps-a-modern-maps-ap...
belchiorb•4h ago
Good point. Is this something that expo maps can’t do?
hadat•3h ago
Haven't used it yet, our team is fully integrated with react-native-maps, and I'm just hearing about it now

Is This Possible

1•terabaapmrtv•1m ago•0 comments

Browser Agents Love Graphs

https://asteroid.ai/blog/graph-powered-browser-agents
1•epi3•1m ago•0 comments

Fine-tuning NeoBERT for a multi-class text classification

https://eamag.me/2025/NeoBERT-Fine-Tuning
1•eamag•1m ago•0 comments

What's your experience using Lynx (mobile framework)?

1•isntThatSth•2m ago•0 comments

Ask HN: How do some platforms legally play copyrighted music?

1•absoluteunit1•2m ago•0 comments

Show HN: CreateMyBanner – AI-generated banners for social media

https://www.createmybanner.com/
1•ddoemonn•3m ago•0 comments

Retconning 'Russiagate': The CIA director encourages the rewriting of history

https://www.lawfaremedia.org/article/retconning--russiagate
1•nabla9•3m ago•0 comments

IBM Power11 Raises the Bar for Enterprise IT

https://newsroom.ibm.com/2025-07-08-ibm-power11-raises-the-bar-for-enterprise-it
1•doener•3m ago•1 comments

Comet Browser by Perplexity

https://comet.perplexity.ai/
1•RobinL•4m ago•1 comments

I still care about the code

https://martinfowler.com/articles/exploring-gen-ai/i-still-care-about-the-code.html
2•zdw•4m ago•0 comments

Design Considerations for an Anthropophilic Computer

https://web.stanford.edu/dept/SUL/sites/mac/primary/docs/bom/anthrophilic.html
1•chaosmachine•6m ago•0 comments

These People Believe They Made AI Sentient [video]

https://www.youtube.com/watch?v=sWZRQsejtfA
1•jackdoe•8m ago•0 comments

How (and why) to be a good customer

https://blog.abolyn.com/p/how-and-why-to-be-a-good-customer
1•aranibatta•9m ago•1 comments

Large Language Models as Autonomous Spacecraft Operators in Kerbal Space Program

https://arxiv.org/abs/2505.19896
2•Bluestein•9m ago•0 comments

Monorail: Pioneering $999 PCs from 1996

https://dfarq.homeip.net/monorail-the-pioneering-999-pc-from-1996/
1•zdw•13m ago•0 comments

Linda Yaccarino departs as boss of Musk's X

https://www.bbc.co.uk/news/articles/cx2gy3j9xq6o
1•Angostura•13m ago•0 comments

IBM Power11 Launched with Up to 2048 Threads and Ddimm Support

https://www.servethehome.com/ibm-power11-launched-with-up-to-2048-threads-and-ddimm-support/
1•rbanffy•16m ago•0 comments

Physicists Found the Ghost Haunting the Most Famous Particle Accelerator

https://www.popularmechanics.com/science/a65299485/physicists-find-ghost-haunting-most-famous-particle-accelerator/
2•Bluestein•18m ago•0 comments

Surprise Hair Loss Breakthrough: DNA Sugar Gel Triggers Robust Regrowth

https://www.sciencealert.com/surprise-hair-loss-breakthrough-dna-sugar-gel-triggers-robust-regrowth
2•amelius•20m ago•1 comments

Show HN: PastelPaste – A Minimal and Modern Pastebin Written in Rust

https://github.com/ni5arga/pastelpaste
1•ni5arga•21m ago•0 comments

Show HN: Mogg

https://mogg-brown.vercel.app/
1•Looksmaxxer•23m ago•0 comments

Nuclear Waste Reprocessing Gains Momentum in the U.S.

https://spectrum.ieee.org/nuclear-waste-reprocessing-transmutation
1•rbanffy•24m ago•0 comments

'Tactless': Brewing Resentments over Bank of Mum and Dad

https://www.telegraph.co.uk/money/property/buying-selling/resentment-brewing-friendship-groups-bank-of-mum-dad/
1•llimos•25m ago•0 comments

Stick-on monitor promises smarter, more accurate detection of sleep disorders

https://medicalxpress.com/news/2025-06-smarter-accurate-disorders.html
1•PaulHoule•25m ago•0 comments

Show HN: PromptDrifter – Catch LLM prompt drift before it breaks prod

https://github.com/Code-and-Sorts/PromptDrifter
2•feynmanquest•25m ago•1 comments

'It's been hell': Amazon packages mistakenly sent to SJ woman's home

https://abc7news.com/post/huge-pile-amazon-packages-fills-bay-area-womans-driveway-third-party-seller-uses-home-address-returns/17022284/
3•randycupertino•26m ago•3 comments

A chemical language model for molecular taste prediction

https://www.nature.com/articles/s41538-025-00474-z
2•yz-exodao•27m ago•0 comments

Only the Biggest Neoclouds Will Survive

https://www.nextplatform.com/2025/07/08/only-the-biggest-neoclouds-will-survive/
1•rbanffy•27m ago•0 comments

Show HN: Combine Minesweeper and Nanogram Game

https://nano-quantum-game.netlify.app/
1•evrmgzm•28m ago•0 comments

PG&E warns of aggressive scammers in Bay Area with more than 2,500 reports

https://abc7news.com/post/pge-scam-utility-company-warns-aggressive-scammers-bay-area-more-2500-cases-year-heres-what-know/17025303/
2•randycupertino•31m ago•1 comments