1 Star 0 Fork 0

hanwenbo/react-native-app-intro-slider

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DefaultSlide.js 899 Bytes
一键复制 编辑 原始数据 按行查看 历史
李杰 提交于 7年前 . Update DefaultSlide.js
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,
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hanwenbo/react-native-app-intro-slider.git
git@gitee.com:hanwenbo/react-native-app-intro-slider.git
hanwenbo
react-native-app-intro-slider
react-native-app-intro-slider
master

搜索帮助