Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 反应本机状态栏_React Native - Fatal编程技术网

React native 反应本机状态栏

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

我试图在我的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
},
状态栏:{
高度:状态栏\高度
},
appBar:{
背景色:“79B45D”,
高度:APPBAR_高度
},
内容:{
弹性:1,
背景颜色:“33373B”
}
});

render(){
const{navigationState,dispatch}=this.props;
返回(
);
}
}