Arthur Lee - Building dark mode with React Native at scale | App.js Conf 2023

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • Dark mode may be easy to implement if you are building a brand new React Native app, but what if you already have a large codebase with many components and screens? In this session, we’ll talk about techniques you can use to implement dark mode at scale, including using a React Native feature you might not have heard of.
    Don't miss any updates about App.js Conf 2024 and follow us on Twitter:
    💎 / appjsconf
    💎 / swmansio

Komentáře • 9

  • @user-ub3wj6uh4k
    @user-ub3wj6uh4k Před rokem +2

    I don't get the point of smooth theme change animation on iOS. If I switch my theme written in JS , the screen rerenders, but it looks as smooth as on presented video.

  • @engelshentenawy
    @engelshentenawy Před rokem +7

    PlatformColor doesn't work well and has a ton of issues as far as I remember, I would generally advice against it.

  • @bryanltobing
    @bryanltobing Před rokem +1

    Does that mean it won't work with code push since the color processing occurs in the native layer?

  • @thespacejedi
    @thespacejedi Před rokem +4

    tailwind's solution is miles better

  • @joeadeleke
    @joeadeleke Před 8 měsíci

    I use shopify restyle

  • @haseeb_ahmed
    @haseeb_ahmed Před rokem

    Not the best way to implement dark mode in react native.

    • @clapynick
      @clapynick Před 8 měsíci

      Which way do you prefer?