I'm thrilled to announce my first OSS package: RN Flash Calendar ๐ โก
It's the fastest and most flexible calendar component for React Native, built on top of @Shopify 's Flash List.
Github: github.com/MarceloPrado/fโฆ
Here are the things I'm most proud of:
Woke up with a crazy idea: what if my open source RN calendar library had ZERO dependencies?
Spent the full day re-implementing a bunch of date-fns functions, and now it's finally complete.
Yes, there are 7k expect calls and bun process all of my tests in 80ms. And you're
Officially in love with Moni's date picker. Isn't this the cleanest API you've ever seen?
1. Type-safe for both range and single dates.
2. Imperative, no context & useEffect hell.
3. Gorgeous.
Coming soon as an OTA near you thanks to @expo ๐
One of the worst things about React Hooks is how they completely hide away complexity.
Yes, I meant worst. Allow me to ellaborate.
At @brexHQ, we deal with a huge and ever-evolving codebase. We're taking about millions of LOC of React, written from 2018 onwards.
Came up with an extremely simple yet effective way of adding confirmation dialogs for destructive actions.
The 90s video shows how it works. Let me know if you have questions.
The demo is for React Native, but the code works the same in plain React (see ๐งต for GH gist)
Quite happy with the latest approach to toggle storybook. Leveraging @expo 's dev client, you can extend the dev menu with custom options. This is awesome!
@Danny_H_W I think you'll like this!
Code in thread.
Finally finished rewriting the date picker from previous video. After much consideration, I decided to drop Wix react-native-calendars and build my own calendar optimized for performance and API ergononomics. Yes, I wrote a calendar by hand ๐
Powered by @Shopify 's flash list.
One of the nicest things I've done for my own DX was copying React Native's Alert API. Previously, I was using a hooks-based approach which honestly sucked.
Managing alerts imperatively is so much easier and quicker:
Finished wiring the calendar with my Input component. Obsessed with how easy and elegant it is to validate and control the inputs - all thanks to @HookForm and some craft ๐ฅ
As a product eng, I always hated to add date inputs since they were a pain in the butt to customize and