6

Many Android devices use software home/back buttons at the bottom of the screen. Various apps change the color of those buttons to better match the app color theme.

How can these colors be changed in React Native? (Preferably programmatically, so light and dark screens could use different button colors.)

Examples from Samsung Galaxy S10:

Teams:

Android software buttons in Teams

Slack 1st screen:

Android software buttons in Slack

Slack 2nd screen:

enter image description here

Sampo
  • 4,308
  • 6
  • 35
  • 51

1 Answers1

8

In Android terminology, that is the navigation bar. Since Android 21 (5.0, Lollipop) the color can be changed either using styles.xml or with Window.setNavigationBarColor.

In React Native, you can use for example react-native-navigation-bar-color or react-native-navbar-color packages.

Sampo
  • 4,308
  • 6
  • 35
  • 51