...
|
...
|
@@ -41,19 +41,17 @@ export default class BannerReourceList extends React.Component { |
|
|
<TouchableOpacity activeOpacity={0.5} onPress={() => {
|
|
|
this.props.onPressSlideItem && this.props.onPressSlideItem(rowData, rowID);
|
|
|
}}>
|
|
|
<View style={styles.row}>
|
|
|
<View style={styles.thumbnailV}>
|
|
|
<Image
|
|
|
source={{uri: newSrc}}
|
|
|
style={styles.thumbnail}
|
|
|
resizeMode={'contain'}
|
|
|
></Image>
|
|
|
</View>
|
|
|
<View style={styles.textV}>
|
|
|
<Text style={styles.text} numberOfLines={1}>
|
|
|
{rowData.name}
|
|
|
</Text>
|
|
|
</View>
|
|
|
<View style={styles.thumbnailV}>
|
|
|
<Image
|
|
|
source={{uri: newSrc}}
|
|
|
style={styles.thumbnail}
|
|
|
resizeMode={'contain'}
|
|
|
></Image>
|
|
|
<View style={styles.textV}>
|
|
|
<Text style={styles.text} numberOfLines={1}>
|
|
|
{rowData.name}
|
|
|
</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
...
|
...
|
@@ -111,14 +109,9 @@ let styles = StyleSheet.create({ |
|
|
width:Dimensions.get('window').width,
|
|
|
backgroundColor: 'white',
|
|
|
},
|
|
|
row: {
|
|
|
marginLeft: 10,
|
|
|
width: itemWidth,
|
|
|
height: itemWidth,
|
|
|
backgroundColor: 'white',
|
|
|
},
|
|
|
textV: {
|
|
|
marginTop: itemHeight - 20,
|
|
|
position: 'absolute',
|
|
|
top: itemHeight - 20,
|
|
|
width: itemWidth,
|
|
|
alignItems: 'center',
|
|
|
height: 20,
|
...
|
...
|
@@ -138,6 +131,7 @@ let styles = StyleSheet.create({ |
|
|
fontWeight: 'bold',
|
|
|
},
|
|
|
thumbnailV: {
|
|
|
marginLeft: 10,
|
|
|
width: itemWidth,
|
|
|
height: itemHeight,
|
|
|
backgroundColor: 'white',
|
...
|
...
|
|