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

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

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.

BłażejLewandowski-kc
Автор

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

bryanltobing
Автор

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

engelshentenawy
Автор

tailwind's solution is miles better

thespacejedi
Автор

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

haseeb_ahmed