Пропустить навигацию
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,5 тыс. подписчиков

Открыть в 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 отметка «Нравится»