-
Install dependencies
yarn
-
Start the app
yarn ios
-
Tap the buttons on the screen. Notice how "light" and "dark" work as expected, but "null" and "undefined" make the current theme "null" and "undefined" respectively, instead of showing what the OS theme is.
-
Apply the patch
npx patch-package
-
Close the app and stop metro.
-
Start the app again
yarn ios
-
Tap the buttons on the screen. Notice how "light" and "dark" work as expected, and "null" and "undefined" now show the OS theme.