Telegram Dark Mode - “Can it be done in React Native?”

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии •

  • @raymondmichael4987
    @raymondmichael4987 Год назад +47

    This dude is real magician, we’re luck to learn these cool things for free, what a wonderful time to be alive and coding 😊😊

    • @apidas
      @apidas Год назад

      then pay for it

    • @raymondmichael4987
      @raymondmichael4987 Год назад +2

      @@apidas , already paid ; which got me watching this.
      Where I live , we buy internet subscriptions buddy. :)

  • @BayramArif
    @BayramArif Год назад +9

    For those who having issue with old Android phones, there are 2 issues
    #1 overlay1 being rendered from 50 / 60 px pushed down.... to fix it in ColorSchemeContext file, where William getting the dimensions, change the screen to window
    #2 on Android you are losing scroll functionality once you wrap your app with the provider. The problem is the Canvas in ColorSchemeContext file. pointerEvents not working somehow on Android. to fix it wrap Canvas with a View like this

  • @walterlol
    @walterlol Год назад +9

    the magician is back

  • @Yigith44
    @Yigith44 Год назад +1

    Thanks for the video. I wish we could change the font size of the ide while watching the video.

  • @lacerda533
    @lacerda533 Год назад +1

    When I grow up I want to be like you, you're amazing bro

  • @alirezahadjar
    @alirezahadjar Год назад +11

    Unlike the other complicated Skia videos, I fully understood the code in this video😅

    • @codeVictor
      @codeVictor Год назад +2

      Seriously 😂

    • @veedjohnson
      @veedjohnson Год назад

      Is Skia that good?
      I’m stuck between learning reanimated or skia for a start

    • @alirezahadjar
      @alirezahadjar Год назад

      @@veedjohnson it’s like picking apple or orange. Each of them are suitable for different situations. But in general, reanimated is much easer to begin with. And also more practical for basic usages.

  • @bbarreto18
    @bbarreto18 Год назад +1

    bro, do u have an example of rn skia hand drawing app?

  • @Mkvkuv
    @Mkvkuv 10 месяцев назад +2

    do you need 2 snapshot? why can't you get just take 1 snapshot and animate the masking to the current dark view?

    • @wcandillon
      @wcandillon  10 месяцев назад

      in this particular transition that would work, to do the 2 snapshot would help if you have more complex transitions between the two snapshots.

    • @wcandillon
      @wcandillon  10 месяцев назад +2

      just tried it and I can confirm that it works, good catch!

    • @Mkvkuv
      @Mkvkuv 10 месяцев назад

      awesome! i think best thing about using one screenshot is that it's more performant and if there are any ongoing animation in the destination transition, it will continue to play.

  • @WTFInterview
    @WTFInterview Год назад +1

    Hey ! What's the intro music ? Event Shazam doesn't know 🤷‍♂

    • @wcandillon
      @wcandillon  Год назад +1

      it's custom made :)

    • @WTFInterview
      @WTFInterview Год назад

      @@wcandillon I love the ratatat vibe to it, nice job !

  • @ramielwan48
    @ramielwan48 Год назад

    Thank you very much for his tutorial!!! One question: doesnt a tap gesture make more sense than a pan here?

  • @vgsnva
    @vgsnva Год назад +4

    Это просто праздник!!!

  • @gnom-om
    @gnom-om Год назад

    Great to see here not only about Skia

  • @Elmatos1
    @Elmatos1 Год назад

    I've been asking myself how to recreate this for ages, love you dude

  • @brauderberg8586
    @brauderberg8586 Год назад +1

    Great video, thanks! 👍
    What plugin do you use for autocomplete code?

  • @tuilaphucday
    @tuilaphucday Год назад

    I run on react native cli.
    Just switch themes. animation circle not working :(

  • @darix795
    @darix795 Год назад +1

    Use ImageShader inside a Circle component instead a Mask is better for performance or is the same?

    • @wcandillon
      @wcandillon  Год назад +5

      great question :))
      Circle + shader is slightly better because if we use a clip path, we would have to create a new JSI Path on every frame but we will have a clean solution for this very soon.

    • @daa5249
      @daa5249 Год назад

      @@wcandillon You do GREAT work, so I'm wondering what your honest unbiased opinion is on the future is for React Native?

    • @wcandillon
      @wcandillon  Год назад

      @@daa5249 I genuinely that its best days are still very much ahead. Also betting on TypeScript is the way to go I think.

    • @daa5249
      @daa5249 Год назад

      @@wcandillon William thanks for the response! It seems that React Native is only updated about twice a year but more importantly, there is VERY little talk of React Native which had me wondering if Facebook is going to give up soon. I'm sure you have a bit of inside information that most don't.

  • @lorkfongbot4683
    @lorkfongbot4683 Год назад

    FInally!!! I've been waiting for this. Thank you William! You're the GOAT

  • @omega5298
    @omega5298 Год назад

    Many thanks for this video; it met all my expectations. I hope you are in good health to continue creating useful videos like this.
    One more question: Can we add animation when changing the statusBarStyle? Because I've noticed it doesn't seem very smooth.
    From a developer in Vietnam with love ❤❤❤

  • @JoseGarcia-vr8mx
    @JoseGarcia-vr8mx Год назад +1

    Amazing video! Thank you William 🙏🏽🙏🏽🙏🏽

  • @Clytax
    @Clytax Год назад

    Hey :) are the videos on your courses up to date? Alot of packages changed so i was just wondering if it still is up to date

  • @hups6648
    @hups6648 Год назад

    Can you somehow easily modify this example to behave like telegram when switching back from light to dark mode? On android it basically shrinks instead of expanding the mask to the click point?

    • @Cuwubiq
      @Cuwubiq 10 месяцев назад

      it is the native behavior of the component. they are not the same and i'm not entirely sure if there's an option for it without having to use custom reanimated animation or something..

  • @GorobetsSV
    @GorobetsSV Год назад +1

    Thank You for the explanation! 🥰

  • @mahmoudezz9193
    @mahmoudezz9193 6 месяцев назад

    Thank You for the explanation

  • @matheusmatavelli4212
    @matheusmatavelli4212 Год назад

    Great video! what font do you use in vscode?

  • @ducpham206
    @ducpham206 Год назад

    Yep. Thanks for video, it so magic

  • @raymondmichael4987
    @raymondmichael4987 Год назад +1

    Eagerly waiting 😊😊😊

    • @frontend315
      @frontend315 Год назад +1

      Awesome.. Found someone else excited..

    • @frontend315
      @frontend315 Год назад +1

      Can we connect?

  • @najlepszyinformatyk1661
    @najlepszyinformatyk1661 11 месяцев назад

    Good video, Thanks William

  • @antekliyue9874
    @antekliyue9874 2 месяца назад

    gege banget om ded

  • @perejro9916
    @perejro9916 4 месяца назад

    awesome!

  • @juliocesarlopescavallarifi6175

    Has anyone get it on Android? I get it perfectly on iOS, but on Android the app crashes as soon as I touch the button

    • @wcandillon
      @wcandillon  Год назад +1

      there is a crash on Android when taking the snapshot, looking to fix it asap 🙏

    • @juliocesarlopescavallarifi6175
      @juliocesarlopescavallarifi6175 Год назад

      @@wcandillon Exactly. I checked and the crash happened when the snapshot was taken, I tried to use react-native-view-shot to take a snapshot, but it was unsuccessful

    • @wcandillon
      @wcandillon  Год назад

      The example works on Android with the latest version of RN Skia (the performance is actually very pleasing). will update the project to use expo dev client probably

    • @wcandillon
      @wcandillon  Год назад +3

      It's fixed on android, forgot to add collapsible={true} to the root view.

  • @juliocesarcosta8168
    @juliocesarcosta8168 Год назад

    when a run snapshot my app crash :(

    • @wcandillon
      @wcandillon  Год назад

      this is likely because you are missing the android collapse view attribute to false. File an issue with a small reproducible example if needed. Maybe we should throw a warning if we see that this header is not set.

    • @juliocesarcosta8168
      @juliocesarcosta8168 Год назад

      @@wcandillon
      I added "collapsable={false}" and the error stopped. Strange, if I don't pass anything, this property says that "undefined" will be set, but "undefined" is interpreted as false by JavaScript anyway. Is this property set to true by default?

  • @aadityaa72
    @aadityaa72 Год назад

    Can it be done in React?

  • @zeeshanahmadkhalil8920
    @zeeshanahmadkhalil8920 Год назад

    I really like new profession of Jonny sins

  • @lukeBalmar
    @lukeBalmar Год назад

    Please start to do flutter animation videos too 🙏🙏🙏