Shipping v0.2.0 fixes edge cases and improves UX

𝗔 𝗳𝗲𝘄 𝗱𝗮𝘆𝘀 𝗮𝗴𝗼 𝗜 𝘀𝗵𝗶𝗽𝗽𝗲𝗱 𝗺𝘆 𝗳𝗶𝗿𝘀𝘁 𝗻𝗽𝗺 𝗽𝗮𝗰𝗸𝗮𝗴𝗲. 𝗧𝗼𝗱𝗮𝘆 𝗜 𝘀𝗵𝗶𝗽𝗽𝗲𝗱 𝘃𝟬.𝟮.𝟬. 🚩 Honestly, the gap between those two moments taught me more than I expected. Shipping v0.0.1 felt like the finish line. But once it was out in the world, used in a real app, running on a real device, I immediately started seeing edge cases I hadn't thought about. What does the user see when they're offline and the flag hasn't been cached yet? I was showing a blank white SVG. That's not good UX. What if someone needs a square flag for a profile avatar? The 4:3 default doesn't work for that. And the worst one: I was silently caching the error state. So if a flag fetch failed once, that grey placeholder was stored forever, even after coming back online, the real flag would never load. That one stung a bit to find. v0.2.0 fixes all of it: — `aspectRatio` prop: '4:3', '1:1' — `useFallbackEmoji`: show an emoji gracefully when offline — Network failures no longer get cached permanently — Offline state uses a dashed placeholder instead of a blank white SVG What made me smile while writing this post: 130 downloads across two versions in under a week. No marketing, no promotion, just a package that solves a real problem. This is still early. v1.0.0 is coming soon with one final feature I have in mind. But seeing people actually install something I built from scratch, to solve a problem I personally faced, is a feeling I want to keep chasing. More packages are coming. This is just the start. 📦 https://lnkd.in/e77Hb7ZJ 🔗 https://lnkd.in/emXFcPA9 #ReactNative #OpenSource #npm #MobileDevelopment #JavaScript #TypeScript #BuildingInPublic

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories