App/Pages/Home8.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ScrollView,
ListView,
PixelRatio,
Platform
} from 'react-native';
import Common from '../Commom/constants';
export default class Home8 extends Component {
constructor(props) {
super(props);
// console.log(props)
}
render() {
let dateArray = this.props.module.moduleDetail;
// let imageHeight = parseInt((Platform.OS === 'ios') ? this.props.module.moduleHeight / 2 : this.props.module.moduleHeight);
// console.log('imageHeight====>' + imageHeight);
return (
<View style={{ flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', backgroundColor: 'white' }}>
{
dateArray.map((objet, i) => {
return (
<TouchableOpacity
key={i}
activeOpacity={0.75}
style={{flexDirection: 'column'}}
onPress={()=>{alert('8')} }
>
<Image
source={{ uri: objet.image }}
style={{ width: Common.window.width * 1 / dateArray.length - 2 / PixelRatio.get(), height: 150 }}
/>
</TouchableOpacity>
)
})
}
</View>
);
}
}
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
