代码拉取完成,页面将自动刷新
import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
Dimensions,
Platform,
} from 'react-native';
export default class DefaultSlide extends React.PureComponent {
render() {
const style = {
backgroundColor: this.props.backgroundColor,
width: this.props.width,
height: this.props.height,
}
return (
<View style={[styles.mainContent, style]}>
<Image
source={this.props.image}
style={this.props.imageStyle}
resizeMode={'stretch'}
/>
</View>
);
}
}
const styles = StyleSheet.create({
mainContent: {
},
text: {
color: 'rgba(255, 255, 255, .7)',
fontSize: 16,
textAlign: 'center',
fontWeight: '300',
paddingHorizontal: 16,
},
title: {
fontSize: 26,
color: 'rgba(255, 255, 255, .7)',
fontWeight: '300',
paddingHorizontal: 16,
}
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。