Authored by chenl

Merge branch '5.5.0' of http://git.yoho.cn/mobile/YH_RNComponent into 5.5.0_local

... ... @@ -147,16 +147,13 @@ export default class Home extends Component {
let data = this._currentChannelData();
let similarIndex = data.get('similarIndex')
let imgUrl = YH_Image.getSlicedUrl(rowData.get('default_images', ''), 290, 386, 2); // 商品缩略图
let yh_exposureData = rowData.get('yh_exposureData', Map()).toJS();
let showSimilarGuider = this.props.data.showSimilarGuider
&& this.state.scrollEnd
&& rowID == this.state.selectedVisibleIndex
let showSimilarGuider = this.props.data.showSimilarGuider
&& this.state.scrollEnd
&& rowID == this.state.selectedVisibleIndex
&& rowID != similarIndex;
return (
<View style={[styles.product,]}
yh_exposureData={yh_exposureData}
>
<View style={[styles.product,]}>
<ProductListCell
style={[styles.listContainer, customStyle]}
key={'sectionID+rowID' + sectionID+rowID}
... ...
... ... @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
"start": "sh replace-custom-components-file.sh && node_modules/react-native/packager/packager.sh"
},
"dependencies": {
"apsl-react-native-button": "^2.4.2",
... ...
#!/usr/bin/env bash
echo "Replace custom components!!!"
echo "Replace View.js..."
cp -f ./js/common/components/customComponents/View.js.bak ./node_modules/react-native/Libraries/Components/View/View.js
echo "Replace ScrollView.js..."
cp -f ./js/common/components/customComponents/ScrollView.js.bak ./node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js
echo "Replace ListView.js..."
cp -f ./js/common/components/customComponents/ListView.js.bak ./node_modules/react-native/Libraries/CustomComponents/ListView/ListView.js
echo "Replace TouchableOpacity.js..."
cp -f ./js/common/components/customComponents/TouchableOpacity.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js
echo "Replace TouchableHighlight.js..."
cp -f ./js/common/components/customComponents/TouchableHighlight.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
echo "\n"
\ No newline at end of file
... ...