Skip navigation
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

@barany6m4.5K followers

Visit on X
890 likesDownloadOriginal post

111,184 views

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 Comments

Comments from the original post on X (Twitter)

  • Miguel Piedrafita ✨'s profile picture

    @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 likes

  • Baran's profile picture

    @barany6m

    yes!

    9 likes

  • Miguel Piedrafita ✨'s profile picture

    @m1guelpf

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

    8 likes

  • Baran's profile picture

    @barany6m

    uncompressed:

    16 likes

  • Umair Ahmed's profile picture

    @umair170

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

    11 likes

  • matty's profile picture

    @mwdwrd

    got claude on the case.. a simple starter:

    8 likes

  • Nodus Labs's profile picture

    @noduslabs

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

    5 likes

  • Yash's profile picture

    @averagelift3r

    really want to see the code

    5 likes

  • Vayo's profile picture

    @vayospot

    sadly, android left the chat

    4 likes

  • Chintan Turakhia's profile picture

    @chintanturakhia

    Epic. Would love to see the code

    3 likes

  • Serg's profile picture

    @serglotz

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

    3 likes

  • Sam's profile picture

    @_sammobach

    Nice, can you share the code :)

    3 likes

  • Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦's profile picture

    @htormey

    Nice. You gonna post any sample code?

    2 likes

  • nikiv.dev's profile picture

    @nikivdev

    would love to see the code 🖤

    2 likes

  • shubham's profile picture

    @srao9151

    Can you share repo ?

    2 likes

  • MARCO WENK's profile picture

    @wenkmarco

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

    2 likes

  • ian's profile picture

    @iandavidandrino

    very impressive :O

    2 likes

  • Fabian Kamberi's profile picture

    @fabiankamberi

    @JannisRingwald 🔥

    2 likes

  • Gabriel's profile picture

    @EngMarketer

    got me real curious there!

    1 like

  • Alex Ruber's profile picture

    @alex_ruber

    @parthematics down

    1 like