Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

react-native-screen-transitions v2.0.2 is out, heres what's new

72,877 görüntüleme • 1 yıl önce •via X (Twitter)

46 Yorum

Ed profil fotoğrafı
Ed1 yıl önce

bruh no way i forgot to link

Ed profil fotoğrafı
Ed1 yıl önce

Both iOS and Android demo vids were in release mode, but keeping things fully transparent, in dev mode, I do notice on android, the ui drops around ~ 4 - 10 fps, I'd have to deep dive this further. Smooth on iOS tho

Ed profil fotoğrafı
Ed1 yıl önce

Anyways, the biggest motivation for me was to change the api, and finally have something I'm super in love with. This version abandons createConfig, just set your configuration inside the options. This is just an extended NATIVE stack. I wish I knew about this earlier lol

Ed profil fotoğrafı
Ed1 yıl önce

Some native options are renamed to make room for ours. That includes gestureEnabled -> nativeGestureEnabled, nativeGestureResponseDistance & nativeGestureDirection

Ed profil fotoğrafı
Ed1 yıl önce

Also, transitions are not enabled by default, this made more sense to me if you decided you wanted to keep the native animations and whatnot. set enableTransitions to true when a screen needs to be animated, this just sets the necessary options to what's required.

Ed profil fotoğrafı
Ed1 yıl önce

Bounds: Bounds are just measurements of components. it's up to you to decide how you want to animate them, but I've tried making this easier for u. The docs explain the modifiers better, here's a tiny snippet of 2 components being animated simultaneously

Ed profil fotoğrafı
Ed1 yıl önce

StyleId: Previously the interpolator only allowed you to animate contentStyle and overlayStyle. With styleId, you can define any transition aware component with a styleId and define them in the interpolator.

Ed profil fotoğrafı
Ed1 yıl önce

I think thats all for me. please read the docs as im sure I didnt cover everything in this thread. Theres also some known issues so please read that as well before considering using this package.

Ed profil fotoğrafı
Ed1 yıl önce

I shouldn't have released a day before vacation, but if theres any issues I'll try to sort them out asap. Next up -> Improve bounds performance, just improve it overall tbh. Also thank you for 400 stars, did not expect that at all!!!

Evan Bacon profil fotoğrafı
Evan Bacon1 yıl önce

Fantastic work! Love the demos

Ed profil fotoğrafı
Ed1 yıl önce

thank u brotha 😎

Sheehan Munim profil fotoğrafı
Sheehan Munim1 yıl önce

Adding once I get home 🫡

Reza profil fotoğrafı
Reza1 yıl önce

Great work man! We’re using this for our upcoming release at @CharterLabs, will share more once we’re live💪

Ed profil fotoğrafı
Ed1 yıl önce

@CharterLabs woah dude wishing u guys the best!! Let me know how I can improve the DX for you guys!

Reza profil fotoğrafı
Reza1 yıl önce

@CharterLabs Thank you! Only had some trouble with headers but nothing to major, will try the shared bounds tonight and will let you know!

Flingex profil fotoğrafı
Flingex1 yıl önce

@trpfsu @CharterLabs Did you solve the issue?

Reza profil fotoğrafı
Reza1 yıl önce

@trpfsu @CharterLabs Shared bounds not working on my end. Also native headers are possible but I cant combine them with the new screen transitions, so I don’t use them for now.

Draculaura profil fotoğrafı
Draculaura1 yıl önce

first appreciate all your effort. Qq, is there a way to replicate the IOS modal effect on Android, like the modal push the stack ?

Ed profil fotoğrafı
Ed1 yıl önce

via presets currently not, confident its possible tho. You could try looking at the js-stack presets, i believe they have what you’re looking for? Just convert it to rn-screen-transitions

Joan profil fotoğrafı
Joan1 yıl önce

This is awesome

Caleb Panza ☾ profil fotoğrafı
Caleb Panza ☾1 yıl önce

BEAUTIFUL demo. Does it play nicely with Expo Router?

Philipp Bazun profil fotoğrafı
Philipp Bazun1 yıl önce

It works well with expo router, right?

manny profil fotoğrafı
manny1 yıl önce

you’re the man!🔥

Michael profil fotoğrafı
Michael1 yıl önce

Adorable mate, will give a try, have a tons of ideas🤌🏼

Flingex profil fotoğrafı
Flingex1 yıl önce

Love the work you've been putting in tons of respect! I'm currently facing an issue where the header of the transitioned screen is not being shown do yk a fix to this?

Ed profil fotoğrafı
Ed1 yıl önce

when screen transitions are enabled (enableTransitions prop in v2), it removes the header, this is the default behavior. But really this is just a helper, it sets presentation:’containedTransparentModal’, animation none, and headershown false.

Bernie Oliveira profil fotoğrafı
Bernie Oliveira1 yıl önce

Looks beautiful. Great job, Ed! Will try it out right away

Ed profil fotoğrafı
Ed1 yıl önce

thanks dude!!!! let me know how i can further improve on them

ℤach profil fotoğrafı
ℤach1 yıl önce

Hard bookmark, nice work!

MONARCH profil fotoğrafı
MONARCH1 yıl önce

Is this shared bounds you talked about?

Ed profil fotoğrafı
Ed1 yıl önce

yes 😎

lucas profil fotoğrafı
lucas1 yıl önce

is it possible rn to share an item from my home screen (tab navigation) with a parent stack navigation screen?

Ed profil fotoğrafı
Ed1 yıl önce

currently not, it relies on mount and the before remove listener for this to work, i could possible reintegrate listeners to add to the tab navigator but we’ll see

Nguyễn Tuấn profil fotoğrafı
Nguyễn Tuấn1 yıl önce

Does it work with a video item?

OOM profil fotoğrafı
OOM1 yıl önce

🔥

screensdesign profil fotoğrafı
screensdesign1 yıl önce

killer update. this is huge

wisdom profil fotoğrafı
wisdom1 yıl önce

🥶

Andie Vester profil fotoğrafı
Andie Vester1 yıl önce

Appreciate this so much! Question - is there a way to isolate Stack-level dismiss animations (in my case, vertical and vertical-inverted), from other animations on the screen (I have a bottom sheet that also relies on swipe up and down to open/close)?

Ed profil fotoğrafı
Ed1 yıl önce

this is a conflict of gestures between both packages, i could possibly expose the pan gesture so you can add into gorhom bottom sheets ( assuming gorhom allows external gesture integration? )

Andie Vester profil fotoğrafı
Andie Vester1 yıl önce

Yep, using Gorhom. It would be awesome if you could expose the pan gesture. That way I can track the view-dismissal swipe and separate it from the swipe which opens or closes my bottom sheet encapsulated within the view. Thank you!

Rihan Nafi profil fotoğrafı
Rihan Nafi1 yıl önce

Thank you so much for doing what you are doing…this is freaking amazing 😍

Filipi Rafael profil fotoğrafı
Filipi Rafael1 yıl önce

amazing, already pushing to prod

Himanshu Kumar profil fotoğrafı
Himanshu Kumar1 yıl önce

Seamless transitions enhance user experience. This update likely improves navigation flow. Worth exploring for smoother app interactions.

Berken Sayilir profil fotoğrafı
Berken Sayilir1 yıl önce

Wow, looks really cool! SwiftUI also has some super easy to use view modifiers for this: .matchedTransitionSource(id:in:) .matchedGeometryEffect(id:in:) Used at the right places those transitions improve UI/UX considerably. Keep up the good work!

avalanche profil fotoğrafı
avalanche1 yıl önce

Goat

kevin wu profil fotoğrafı
kevin wu1 yıl önce

Does it support expo-router v6?

Benzer Videolar