mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
Summary: * Added a label so we can click on the text to toggle the dark mode * Added `height: 100%` in the CSS to make the dark background fill the entire view * Improving JS code with `classList.toggle()` instead of redundant `if else` and fragile `document.styleSheets` access * Adjusted the link color in dark mode to be less flashy   Closes https://github.com/facebook/react-native/pull/13052 Differential Revision: D4748893 fbshipit-source-id: a81266c52b24f8e5dcedf0b9f37134688342d8d2