Вот мой код:
import React, {Component} from 'react';
import {
Platform,
StyleSheet,
Text,
View ,
ImageBackground } from 'react-native';
export default class App extends Component {
render() {
return (
<View style={{ flex: 1, flexDirection: 'column', backgroundColor: 'transparent' }}>
<ImageBackground source={{uri: "image1"}} style={{ width: null , height: null , flex: 1, resizeMode: 'cover',}}
>
</ImageBackground>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
А при попытке в эмуляторе все ок, но на моем устройстве
изображения не отображаются
Emulator
Дерево файлов
Почему это случилось? :( Пожалуйста, помогите.