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

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

На главную

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

72,877 просмотров • 1 год назад •via X (Twitter)

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

Фото профиля Ed
Ed1 год назад

bruh no way i forgot to link

Фото профиля Ed
Ed1 год назад

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
Ed1 год назад

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
Ed1 год назад

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

Фото профиля Ed
Ed1 год назад

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
Ed1 год назад

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
Ed1 год назад

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
Ed1 год назад

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
Ed1 год назад

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
Evan Bacon1 год назад

Fantastic work! Love the demos

Фото профиля Ed
Ed1 год назад

thank u brotha 😎

Фото профиля Sheehan Munim
Sheehan Munim1 год назад

Adding once I get home 🫡

Фото профиля Reza
Reza1 год назад

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

Фото профиля Ed
Ed1 год назад

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

Фото профиля Reza
Reza1 год назад

@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
Flingex1 год назад

@trpfsu @CharterLabs Did you solve the issue?

Фото профиля Reza
Reza1 год назад

@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
Draculaura1 год назад

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
Ed1 год назад

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
Joan1 год назад

This is awesome

Фото профиля Caleb Panza ☾
Caleb Panza ☾1 год назад

BEAUTIFUL demo. Does it play nicely with Expo Router?

Фото профиля Philipp Bazun
Philipp Bazun1 год назад

It works well with expo router, right?

Фото профиля manny
manny1 год назад

you’re the man!🔥

Фото профиля Michael
Michael1 год назад

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

Фото профиля Flingex
Flingex1 год назад

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
Ed1 год назад

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
Bernie Oliveira1 год назад

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

Фото профиля Ed
Ed1 год назад

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

Фото профиля ℤach
ℤach1 год назад

Hard bookmark, nice work!

Фото профиля MONARCH
MONARCH1 год назад

Is this shared bounds you talked about?

Фото профиля Ed
Ed1 год назад

yes 😎

Фото профиля lucas
lucas1 год назад

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

Фото профиля Ed
Ed1 год назад

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
Nguyễn Tuấn1 год назад

Does it work with a video item?

Фото профиля OOM
OOM1 год назад

🔥

Фото профиля screensdesign
screensdesign1 год назад

killer update. this is huge

Фото профиля wisdom
wisdom1 год назад

🥶

Фото профиля Andie Vester
Andie Vester1 год назад

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
Ed1 год назад

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
Andie Vester1 год назад

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
Rihan Nafi1 год назад

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

Фото профиля Filipi Rafael
Filipi Rafael1 год назад

amazing, already pushing to prod

Фото профиля Himanshu Kumar
Himanshu Kumar1 год назад

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

Фото профиля Berken Sayilir
Berken Sayilir1 год назад

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
avalanche1 год назад

Goat

Фото профиля kevin wu
kevin wu1 год назад

Does it support expo-router v6?

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