2017-04-19 31 views

回答

0

代碼必須設置此道具爲StatusBar組件:backgroundColor='#ef5350'

由於每docs

[Android]產品的backgroundColor?:$ FlowFixMe

背景c olor的狀態欄。

+0

我正在使用此庫:https://github.com/react-native-community/react-native-navbar。在文檔中,它聲明只需爲statusBar添加tintColor即可更改其顏色。同樣,它適用於IOS,但不適用於Android。 – ask007