react-native-macos/template
Brent Kelly 763dc52387 refactor: Updating template to support dark mode StatusBar on Android (#33561)
Summary:
This PR adds a `backgroundColor` prop to the `StatusBar` in the starter template so that Dark Mode is correctly demonstrated when running on Android.

**Before**

StatusBar in starter app on Android would remain the same color no matter what the current device color scheme was.

<img width="300" alt="Screenshot 2022-04-04 at 09 30 54" src="https://user-images.githubusercontent.com/5814579/161505272-88b57e86-3ada-4bf5-beef-a1f5a1661eaa.png"><img width="300" alt="Screenshot 2022-04-04 at 09 31 12" src="https://user-images.githubusercontent.com/5814579/161505278-c2da0421-83ab-4e03-9f04-718f5503ed36.png">

**After**

StatusBar in starter app on Android correctly reacts to the color scheme.

<img width="300" alt="Screenshot 2022-04-04 at 09 29 41" src="https://user-images.githubusercontent.com/5814579/161505014-af3b255b-650b-435f-9e37-2f604d5f0310.png"><img width="300" alt="Screenshot 2022-04-04 at 09 29 22" src="https://user-images.githubusercontent.com/5814579/161505011-55ae4ffe-bfd0-449c-a6c1-0d2b8d3aee59.png">

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[Android] [Changed] - Demonstrating Dark Mode correctly in the `StatusBar` for the starter template App.

Pull Request resolved: https://github.com/facebook/react-native/pull/33561

Test Plan: This was a very simple change that I was able to verify in a newly generated RN project by copying the `backgroundColor` prop across. See screenshots above.

Reviewed By: christophpurrer

Differential Revision: D36018771

Pulled By: kacieb

fbshipit-source-id: c037cb19478affaa9c5485ebd9babf728cced1d6
2022-05-18 09:39:12 -07:00
..
__tests__ Exclude RN templates from internal linters 2019-02-11 15:42:17 -08:00
_bundle Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
android Bump Android Gradle Plugin to 7.2.0 (#33817) 2022-05-16 07:25:03 -07:00
ios Fix comments on how to enable/disable Hermes on iOS 2022-05-06 10:17:25 -07:00
App.js refactor: Updating template to support dark mode StatusBar on Android (#33561) 2022-05-18 09:39:12 -07:00
Gemfile Bump ruby to 2.7.5 (#33485) 2022-04-12 07:59:52 -07:00
_buckconfig Move react-native template 2018-12-07 07:49:19 -08:00
_eslintrc.js Add .eslintrc to RN project template (#23901) 2019-03-21 07:14:23 -07:00
_flowconfig Deploy 0.178.0 to xplat 2022-05-12 20:06:24 -07:00
_gitignore Introduce .xcode.env configuration file to source `node` (#33546) 2022-04-11 02:50:57 -07:00
_prettierrc.js JS: Upgrade to Prettier v2.4.1 [1/n] 2021-11-02 22:14:16 -07:00
_ruby-version Bump ruby to 2.7.5 (#33485) 2022-04-12 07:59:52 -07:00
_watchmanconfig Move react-native template 2018-12-07 07:49:19 -08:00
app.json Move react-native template 2018-12-07 07:49:19 -08:00
babel.config.js Revert the change to add babel-plugin-codegen 2021-12-15 16:53:01 -08:00
index.js Exclude RN templates from internal linters 2019-02-11 15:42:17 -08:00
metro.config.js Change default metro.config.js to utilize inline requires (#29770) 2020-08-26 11:30:59 -07:00
package.json Upgrade RN CLI to v8 alpha.5 (#33755) 2022-05-06 03:50:15 -07:00