React native 使用React导航时,打开带有通知的应用程序会导致标题增长
使用React Native 0.59.8 NativeBase 2.13.7 反应导航3.11.1 安卓9 当通过单击应用程序打开应用程序时 当通过通知打开应用程序时 此外,状态栏会更改颜色。 我猜不出这个问题的原因 下面是截图的代码React native 使用React导航时,打开带有通知的应用程序会导致标题增长,react-native,react-navigation,native-base,React Native,React Navigation,Native Base,使用React Native 0.59.8 NativeBase 2.13.7 反应导航3.11.1 安卓9 当通过单击应用程序打开应用程序时 当通过通知打开应用程序时 此外,状态栏会更改颜色。 我猜不出这个问题的原因 下面是截图的代码 import ExtraDimensions from 'react-native-extra-dimensions-android'; import { Container, Header, Left, Body, Right, Button, Tex
import ExtraDimensions from 'react-native-extra-dimensions-android';
import {
Container, Header, Left, Body, Right, Button, Text, View, Content,
} from 'native-base';
const headerHeight = ExtraDimensions.getStatusBarHeight() + 40;
<Container style={{ backgroundColor: Colors.GRAY_LV0 }}>
<Header
transparent
style={{
height: headerHeight,
borderBottomWidth: 0.5,
borderBottomColor: Colors.GRAY_LV4,
}}
>
<Left style={{ flex: 1 }}>
<TouchableOpacity
transparent
onPress={close}
>
<Image
style={{ height: 25, width: 25, tintColor: Colors.GRAY_LV7 }}
source={{ uri: images.back }}
/>
</TouchableOpacity>
</Left>
<Body style={{ flex: 3, flexDirection: 'row', justifyContent: 'center' }}>
<Image
style={{
height: 22, width: 22, tintColor: Colors.GRAY_LV4, marginRight: 5,
}}
source={{ uri: images.settingLight }}
/>
<Text style={styles.headerTitle}>
설정
</Text>
</Body>
<Right style={{ flex: 1, flexDirection: 'row' }} />
</Header>
</Container>
const MyStackNavigator = createStackNavigator({
Setting:SettingContainer,
}, {
mode: 'card',
headerMode: 'none',
});
从“react native extra dimensions android”导入ExtraDimensions;
进口{
容器、标题、左侧、主体、右侧、按钮、文本、视图、内容、,
}来自“本土基地”;
const headerHeight=额外维度。getStatusBarHeight()+40;
설정
const MyStackNavigator=createStackNavigator({
设置:设置容器,
}, {
模式:“卡”,
headerMode:“无”,
});
看起来这是由于风格={{{backgroundColor:Colors.GRAY\u LV0}}。
@ChotalaParesh不仅是颜色,而且高度完全不同。