React native 反应本机状态栏
我试图在我的android仿真器上设置React native 反应本机状态栏,react-native,React Native,我试图在我的android仿真器上设置状态栏,它的颜色太深和绿色。如何设置高度 render(){ const{navigationState,dispatch}=this.props; 返回( ); } } const STATUSBAR_HEIGHT=Platform.OS==“ios”?20:状态栏。当前高度; const APPBAR_HEIGHT=Platform.OS==“ios”?44 : 56; const styles=StyleSheet.create({ 容器:{ 弹性:1
状态栏
,它的颜色太深和绿色。如何设置高度
render(){
const{navigationState,dispatch}=this.props;
返回(
);
}
}
const STATUSBAR_HEIGHT=Platform.OS==“ios”?20:状态栏。当前高度;
const APPBAR_HEIGHT=Platform.OS==“ios”?44 : 56;
const styles=StyleSheet.create({
容器:{
弹性:1
},
状态栏:{
高度:状态栏\高度
},
appBar:{
背景色:“79B45D”,
高度:APPBAR_高度
},
内容:{
弹性:1,
背景颜色:“33373B”
}
});
render(){
const{navigationState,dispatch}=this.props;
返回(
);
}
}