Nick Cherry pfp

Nick Cherry

@nickcherry

1889 Following
8889 Followers


Nick Cherry pfp
Nick Cherry
@nickcherry
you are just rawdogging css over here?
1 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
yeah i agree that is pretty straightforward. just curious, have you run into any issues wrt caching/invalidation? i don’t have much personal experience there, but have heard some horror stories from others
1 reply
0 recast
1 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
haha, yeah i believe so. also has a built-in test framework that gets the job done i’ve never migrated an existing node app. i think with this most recent version release, spent a lot of time filling in holes related to node compatibility for that particular use case. the free speed boost is great, but the killer feature for me has always been the first-class typescript support and no need for a compile step
1 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
if all the frameworks would just give up on file-based routing in favor of imported functions (which could still be lazy-loaded), i think they could at solve a lot of the issues with minimal impact on any other design decisions.
1 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
I haven't spent much time with Remix, but when I've investigated it in the past, I vaguely remembering having a lot of the same issues I do with Next - namely the poor type support and unintuitive/limited middleware. Maybe a skill issue on my part. I do prefer their more explicit route config, though.
1 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
Once Bun publishes their Tailwind plugin and adds RSC support, the only reason I think I would even consider Next again would be for the frictionless deployment of toy apps. https://x.com/jarredsumner/status/1883388046814609519
5 replies
27 recasts
69 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
If you only need compression/resizing, you could look into https://www.npmjs.com/package/react-native-compressor, but for anything more involved I'm still looking for a replacement
0 reply
0 recast
1 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
That is correct 😅 . I'm not sure what the current state is, but in a simpler time (when there were fewer variables that went into the height of a cast), I think we would attempt to approximate average height based on the data for each cast, then pass the estimated height to FlashList for its internal optimizations. After the cast rendered, we would cache the true height to reference if any of the casts appeared on a different list later in the session. The easier approach is just to ballpark a reasonable average. FlashList won't be perfectly tuned, but will probably be close enough.
0 reply
1 recast
3 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
also, while it's more of a preference, i prefer that it actually uses pojos, so you get type safety and auto suggest without having to worry about extra compilation steps and ide plugins.
0 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
in case it's useful, i tend to use https://tvke.github.io/react-native-tailwindcss/. i haven't done a deep dive, but i assume it's pretty performant given that it's just expose a deep object of view / test styles, doesn't have any runtime compute, and only using a subset of tailwind's classes.
1 reply
0 recast
1 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
but in general ya i tend to prefer this kind of straightforward build process if i can get away w it
0 reply
0 recast
1 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
if you don’t actually need to test in a browser (e.g. if it’s a crypto library) you might consider just using bun. most of the time, though, you’ll probs want the a basic local file server and hot reload. for those cases i tend to use vite, bc gives you the build step and the dev env w minimal config
1 reply
0 recast
2 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
yeah what you described sounds like the dream. i’m not familiar with the api but my only guess as to how else you might be able to do it is if the slider accepts a style prop that can be a (re)animated style
0 reply
0 recast
0 reaction

Harry pfp
Harry
@htormey
My interview with @nickcherry about migrating Coinbase's mobile apps to React Native is live. We talk about React Native perf, his work building @warpcast, crypto + mobile, tooling & wrapping native libraries https://stepchange.work/blog/migrating-coinbases-56-million-users-to-react-native-key-lessons-and-takeaways
10 replies
97 recasts
317 reactions

ZAGABOND pfp
ZAGABOND
@zagabond
Lore in a frame. https://frames.azuki.com/api
42 replies
84 recasts
288 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
such a good show!
0 reply
0 recast
3 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
Probably late to the party, but just discovered https://mobbin.com/ - incredibly thorough breakdowns of popular apps' ux flows.
8 replies
9 recasts
78 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
Nice! I think type-fest also exports something similar https://github.com/sindresorhus/type-fest/blob/main/source/simplify.d.ts
0 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
Yep, the path is `~/profiles/:fid`, e.g. https://warpcast.com/~/profiles/145
0 reply
0 recast
0 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
RN is immune for the record, what a champ
0 reply
0 recast
0 reaction