News for hackers. Stuff that matters.
Re:Ask HN: React Native or Flutter for a new app in 2023? by simlevesque on Wednesday July 12, 2023 @02:19PM (#36699280)
> What do you find you can share the most?

Types.

Re:Ask HN: React Native or Flutter for a new app in 2023? by ctvo on Wednesday July 12, 2023 @02:39PM (#36699670)
Types (interface contracts) are already easily sharable with an IDL and code generation. There's no need to stick to a common programming language to share types.

I'm highly skeptical of code sharing for other scenarios, and rarely (never) have seen the effort worth the payoff.

- https://protobuf.dev/

- https://smithy.io/2.0/

Re:Ask HN: React Native or Flutter for a new app in 2023? by matthewwolfe on Wednesday July 12, 2023 @06:21PM (#36702468)
See my other comment above, but I was able to share basically everything that was not UI code. Types, request hooks, utils, configs/constants. Probably about 60% of the app, and you wouldn’t want to share UI code anyway because web and Native are so different.