Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

72,877 Aufrufe • vor 1 Jahr •via X (Twitter)

46 Kommentare

Profilbild von Ed
Edvor 1 Jahr

bruh no way i forgot to link

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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.

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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.

Profilbild von Ed
Edvor 1 Jahr

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.

Profilbild von Ed
Edvor 1 Jahr

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!!!

Profilbild von Evan Bacon
Evan Baconvor 1 Jahr

Fantastic work! Love the demos

Profilbild von Ed
Edvor 1 Jahr

thank u brotha 😎

Profilbild von Sheehan Munim
Sheehan Munimvor 1 Jahr

Adding once I get home 🫡

Profilbild von Reza
Rezavor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Reza
Rezavor 1 Jahr

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

Profilbild von Flingex
Flingexvor 1 Jahr

@trpfsu @CharterLabs Did you solve the issue?

Profilbild von Reza
Rezavor 1 Jahr

@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.

Profilbild von Draculaura
Draculauravor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Joan
Joanvor 1 Jahr

This is awesome

Profilbild von Caleb Panza ☾
Caleb Panza ☾vor 1 Jahr

BEAUTIFUL demo. Does it play nicely with Expo Router?

Profilbild von Philipp Bazun
Philipp Bazunvor 1 Jahr

It works well with expo router, right?

Profilbild von manny
mannyvor 1 Jahr

you’re the man!🔥

Profilbild von Michael
Michaelvor 1 Jahr

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

Profilbild von Flingex
Flingexvor 1 Jahr

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?

Profilbild von Ed
Edvor 1 Jahr

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.

Profilbild von Bernie Oliveira
Bernie Oliveiravor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von ℤach
ℤachvor 1 Jahr

Hard bookmark, nice work!

Profilbild von MONARCH
MONARCHvor 1 Jahr

Is this shared bounds you talked about?

Profilbild von Ed
Edvor 1 Jahr

yes 😎

Profilbild von lucas
lucasvor 1 Jahr

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

Profilbild von Ed
Edvor 1 Jahr

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

Profilbild von Nguyễn Tuấn
Nguyễn Tuấnvor 1 Jahr

Does it work with a video item?

Profilbild von OOM
OOMvor 1 Jahr

🔥

Profilbild von screensdesign
screensdesignvor 1 Jahr

killer update. this is huge

Profilbild von wisdom
wisdomvor 1 Jahr

🥶

Profilbild von Andie Vester
Andie Vestervor 1 Jahr

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)?

Profilbild von Ed
Edvor 1 Jahr

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? )

Profilbild von Andie Vester
Andie Vestervor 1 Jahr

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!

Profilbild von Rihan Nafi
Rihan Nafivor 1 Jahr

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

Profilbild von Filipi Rafael
Filipi Rafaelvor 1 Jahr

amazing, already pushing to prod

Profilbild von Himanshu Kumar
Himanshu Kumarvor 1 Jahr

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

Profilbild von Berken Sayilir
Berken Sayilirvor 1 Jahr

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!

Profilbild von avalanche
avalanchevor 1 Jahr

Goat

Profilbild von kevin wu
kevin wuvor 1 Jahr

Does it support expo-router v6?

Ähnliche Videos