React native: Dynamic configs in app.json

Viewed 193

Is it possible to dynamically assign values to app.json file in react native?

i have this configs in my app.json file

{
  "expo": {
    "androidNavigationBar": {
      "barStyle": "light-content",
      "backgroundColor": "#000000"
    }
  }
}

to change the bottom soft keys background color in android devices

enter image description here

as I'm switching to different screens I would like barStyle and backgroundColor to be altered accordingly and be like

"barStyle": "dark-content",
"backgroundColor": "#ffffff"
0 Answers
Related