正在加载视频...

视频加载失败

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,411 次观看 • 6 天前 •via X (Twitter)

20 条评论

Gian Maurice 的头像
Gian Maurice6 天前

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.6 天前

@wcandillon and android? 😅

Paweł Mioduszewski 的头像
Paweł Mioduszewski5 天前

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

Zen Bui 的头像
Zen Bui5 天前

flutter. write once and get delicious performance everywhere 😉

Enes 的头像
Enes5 天前

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 Bui5 天前

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 的头像
ege6 天前

@wcandillon Can doesn’t mean should

Hammad Zafar 🇵🇰 的头像
Hammad Zafar 🇵🇰5 天前

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 Brezinski6 天前

looks amazing!

p19k 的头像
p19k5 天前

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

Meltohamy 𓂆 的头像
Meltohamy 𓂆5 天前

@nishanbende Looks smooth, did you use Skia ?

LLM Codes 的头像
LLM Codes5 天前

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

Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦 的头像
Harry Tormey 🇮🇪 | 🇺🇸| 🇺🇦6 天前

👏🏻 looks dope.

Jamik 的头像
Jamik5 天前

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

LLM Codes 的头像
LLM Codes6 天前

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 Narcisse4 天前

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 Mishra5 天前

🧈

LLM Codes 的头像
LLM Codes5 天前

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 Builder6 天前

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

pple A 的头像
pple A5 天前

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

相关视频