跳过导航
react-native-screen-transitions v2.0.2 is out, heres what's new
0:00 / 0:25

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

Ed

@trpfsu3841 位关注者

在 X 上查看
655 个赞下载原帖

72,901 次观看

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

46 条评论

评论来自 X (Twitter) 上的原帖

  • Ed 的头像

    @trpfsu

    bruh no way i forgot to link

    30 个赞

  • Ed 的头像

    @trpfsu

    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

    11 个赞

  • Ed 的头像

    @trpfsu

    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

    12 个赞

  • Ed 的头像

    @trpfsu

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

    1 个赞

  • Ed 的头像

    @trpfsu

    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.

    1 个赞

  • Ed 的头像

    @trpfsu

    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

    3 个赞

  • Ed 的头像

    @trpfsu

    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.

    2 个赞

  • Ed 的头像

    @trpfsu

    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.

    4 个赞

  • Ed 的头像

    @trpfsu

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

    5 个赞

  • Evan Bacon 的头像

    @Baconbrix

    Fantastic work! Love the demos

    5 个赞

  • Ed 的头像

    @trpfsu

    thank u brotha 😎

    2 个赞

  • Sheehan Munim 的头像

    @sheehanmunim

    Adding once I get home 🫡

    3 个赞

  • Reza 的头像

    @RezaRindawa

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

    3 个赞

  • Ed 的头像

    @trpfsu

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

  • Reza 的头像

    @RezaRindawa

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

    1 个赞

  • Flingex 的头像

    @Flingexx

    @trpfsu @CharterLabs Did you solve the issue?

  • Reza 的头像

    @RezaRindawa

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

    1 个赞

  • Draculaura 的头像

    @YoSoyFermin

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

    2 个赞

  • Ed 的头像

    @trpfsu

    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

    3 个赞

  • Joan 的头像

    @JuanRdBO

    This is awesome

    1 个赞