NativeBase + Exponent Header

后端 未结 5 1107
情话喂你
情话喂你 2021-02-07 08:44

I\'m using NativeBase with Exponent. The Header goes beneath the phone\'s StatusBar. You can see this in the NativeBase demo that Exponent released.

Does anyone

5条回答
  •  春和景丽
    2021-02-07 09:03

    Old post but recently I've faced same issue with Expo. And I overcome this issue by adding this line to app.json file.

    "androidStatusBar": { "backgroundColor": "#000000" }

    app.json file

    {
      "expo": {
        "name": "You App Name",    
        "androidStatusBar": {
          "backgroundColor": "#000000"
        }
      }
    }
    

    That solved my issue. I think this may help to others.

提交回复
热议问题