当我在react-native中使用时,它会发出警告,即不允许与子项一起使用,并且将来会出错.用户改为.
所以,如果我使用它不会给出我正在使用的预期结果
这是我写的使用的代码
<ImageBackground source={require('../../img/splash/splash_bg.png')} style={styles.backgroundImage} >
</ImageBackground>
Run Code Online (Sandbox Code Playgroud)
风格代码是
const styles = StyleSheet.create({
backgroundImage: {
flex: 1,
// width: undefined,
// height: undefined,
// flexDirection: 'column',
// backgroundColor:'transparent',
// justifyContent: 'flex-start',
},}
Run Code Online (Sandbox Code Playgroud)
任何帮助将非常感激.谢谢
react-native ×1