跳过导航
For our new product, we built a chat in React Native that feels like iMessage
0:00 / 0:25

For our new product, we built a chat in React Native that feels like iMessage

Baran

@barany6m4539 位关注者

在 X 上查看
890 个赞下载原帖

111,184 次观看

For our new product, we built a chat in React Native that feels like iMessage Here's how we did it: ① Fabric Swift View ② UICollectionView ③ SwiftUI cells via UIHostingConfiguration React is responsible for the state - mutations, fetching, infinite loading - all via React Query. The native Fabric view is purely for rendering. React decides what to show, native decides how to show it The bridge between three frameworks was tricky but worth it. UICollectionView animations come for free and scroll performance is native-smooth No blank spaces and no FPS drops - all powered by the New Architecture Who wants to see the code?

36 条评论

评论来自 X (Twitter) 上的原帖

  • Miguel Piedrafita ✨ 的头像

    @m1guelpf

    i’m not super familiar with the RN world, but if this is akin to using React for data management but rendering with pure SwiftUI/UIKit I’d be very interested in how you got it working 👀

    23 个赞

  • Baran 的头像

    @barany6m

    yes!

    9 个赞

  • Miguel Piedrafita ✨ 的头像

    @m1guelpf

    ooo veeeeery interested, been looking at state management solutions for SwiftUI and the ergonomics SUCK

    8 个赞

  • Baran 的头像

    @barany6m

    uncompressed:

    16 个赞

  • Umair Ahmed 的头像

    @umair170

    Question should be who doesn't wanna see the code? 👀

    11 个赞

  • matty 的头像

    @mwdwrd

    got claude on the case.. a simple starter:

    8 个赞

  • Nodus Labs 的头像

    @noduslabs

    Anyone received the code or it was just a bait to get views and comments?

    5 个赞

  • Yash 的头像

    @averagelift3r

    really want to see the code

    5 个赞

  • Vayo 的头像

    @vayospot

    sadly, android left the chat

    4 个赞

  • Chintan Turakhia 的头像

    @chintanturakhia

    Epic. Would love to see the code

    3 个赞

  • Serg 的头像

    @serglotz

    Can you rebuild telegram ios client in swift? That’s the real challenge!

    3 个赞

  • Sam 的头像

    @_sammobach

    Nice, can you share the code :)

    3 个赞

  • Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦 的头像

    @htormey

    Nice. You gonna post any sample code?

    2 个赞

  • nikiv.dev 的头像

    @nikivdev

    would love to see the code 🖤

    2 个赞

  • shubham 的头像

    @srao9151

    Can you share repo ?

    2 个赞

  • MARCO WENK 的头像

    @wenkmarco

    Does the interactive keyboard dismissal work? I’d be impressed !

    2 个赞

  • ian 的头像

    @iandavidandrino

    very impressive :O

    2 个赞

  • Fabian Kamberi 的头像

    @fabiankamberi

    @JannisRingwald 🔥

    2 个赞

  • Gabriel 的头像

    @EngMarketer

    got me real curious there!

    1 个赞

  • Alex Ruber 的头像

    @alex_ruber

    @parthematics down

    1 个赞