Я создал Wallpaper.js, где находится мое фоновое изображение.Однако он не отображается в полноэкранном режиме в моем эмуляторе.
My Wallpaper.js
import React, { Component } from 'react';
import { StyleSheet, ImageBackground } from 'react-native';
import bgSrc from '../../images/wallpaper.png';
export default class Wallpaper extends Component {
render() {
return (
<ImageBackground style={styles.picture} source={bgSrc}>
{this.props.children}
</ImageBackground>
);
}
}
const styles = StyleSheet.create({
picture: {
flex: 1,
width: null,
height: null,
resizeMode: 'cover',
},
});
Я называю эти обои на своей странице входа в систему:
export default class LoginScreen extends Component {
render() {
return (
<Wallpaper>
</Wallpaper>
);
}
}
Результатом является пустой пробел в верхней части.Почему это не полный экран?
![enter image description here](https://i.stack.imgur.com/9GLDb.png)
Спасибо