罗广聪

products

... ... @@ -14,16 +14,28 @@ export default class CommonImageView extends Component {
super(props);
this.state = {
products: [
{
headerImage: require("../assets/home/product_header_1.jpg"),
title: "",
subscribe: "",
price: ""
},{
headerImage: require("../assets/home/product_header_2.jpg"),
title: "",
subscribe: "",
price: "",
}
]
}
}
render() {
console.log("Image index", this.props.navigation.state.params.index);
const index = this.props.navigation.state.params.index;
const item = this.state.products[index];
return (
<View style={styles.container}>
<ScrollView>
{index == 0 ? (
<Image
style={styles.imgOne}
... ...