Загрузка видео...

Не удалось загрузить видео

На главную

While you debate if you should switch to native, I've implemented iOS Gallery zoom interaction, using React Native and Expo, and feels incredibly smooth. Recreating this was living in my head over 4 years without paying, now I think it's a good time to show what’s possible. It’s funny...

25,249 просмотров • 3 дней назад •via X (Twitter)

Комментарии: 20

Фото профиля Gian Maurice
Gian Maurice3 дней назад

The debate was never “can RN do a zoom.” It was “can RN do a zoom, plus gestures, plus memory pressure, plus a 4-year-old Android device, without one engineer babysitting it.” You proved the happy path. The product question is whether that interaction stays at 60fps after you add sharing, albums, and a backend. What’s the frame-time look like on an older iPhone, not the demo device?

Фото профиля Serhii Y.
Serhii Y.3 дней назад

@wcandillon and android? 😅

Фото профиля Paweł Mioduszewski
Paweł Mioduszewski2 дней назад

I've thought about doing this too. Looks amazing! congrats!

Фото профиля Zen Bui
Zen Bui2 дней назад

flutter. write once and get delicious performance everywhere 😉

Фото профиля Enes
Enes2 дней назад

Looks nice! - When you are in 5, 3, and 1 column layout, you need to add border to grid - Use different size of photos based on layout to load them faster - Transition doesn't look matching the iOS, use the spring values below damping: 500, stiffness: 1000, mass: 3, overshootClamping: true, energyThreshold: 6e-9

Фото профиля Zen Bui
Zen Bui2 дней назад

The point that native is by default better than cross-platform is a pretty bad argument. With enough care and attention, you can control the output 😊

Фото профиля ege
ege3 дней назад

@wcandillon Can doesn’t mean should

Фото профиля Hammad Zafar 🇵🇰
Hammad Zafar 🇵🇰2 дней назад

In my experience, as a user reactive native apps are always slower and does not have a native feel. There are weird UI bugs in them. I have experienced more UI bugs in Meta apps than Google apps(native). It might be skill issue for those developer.

Фото профиля Thiago Brezinski
Thiago Brezinski3 дней назад

looks amazing!

Фото профиля p19k
p19k2 дней назад

Cross-platform tools are getting better, nowadays it's a question of how these tools are used. Great demo!

Фото профиля Meltohamy 𓂆
Meltohamy 𓂆2 дней назад

@nishanbende Looks smooth, did you use Skia ?

Фото профиля LLM Codes
LLM Codes2 дней назад

that pinch-to-zoom gallery transition is exactly where rn apps usually feel fake lol, this one looks genuinely smooth

Фото профиля Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦
Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦3 дней назад

👏🏻 looks dope.

Фото профиля Jamik
Jamik2 дней назад

that zoom interaction looks way better than i expected from RN + Expo tbh

Фото профиля LLM Codes
LLM Codes3 дней назад

the rubber-band physics is always the giveaway. you can fake a lot in rn but the second the zoom spring feels off, users notice instantly

Фото профиля Jemba Narcisse
Jemba Narcisse1 день назад

That sounds like a rewarding project! What was the most challenging aspect of implementing the zoom interaction in React Native, and how did you overcome it?

Фото профиля Milind Mishra
Milind Mishra2 дней назад

🧈

Фото профиля LLM Codes
LLM Codes2 дней назад

the spring animation is doing all the heavy lifting here, looks great. i've found expo's shared element stuff starts falling apart once you add a second gesture on top, curious if you hit that too

Фото профиля Brjan | AI Builder
Brjan | AI Builder3 дней назад

what specific challenges did you face while implementing that zoom interaction?

Фото профиля pple A
pple A2 дней назад

这个是 expo-ui/swiftui 还是 react-native

Похожие видео