product-detail
v1.0.1
Published
商品详情界面,productId为必传参数
Downloads
14
Readme
product-detail
The card component which have motion of flip for React Native(iOS/Android)
Installation
in Cli
npm i product-detail
Usage
Simple
import ProductDetail from 'product-detail'
jumpToProductDetail(navigator, product_id) {//进入详情界面
if (navigator) {
navigator.push({
name: 'ProductDetail',
component: ProductDetail,
//这里多出了一个 params 其实来自于<Navigator 里的一个方法的参数...
params: {
productID: product_id,
AddOnBool: false,
selectedOptionAry: this.state.checkedOptions,//已经选择的商品
}
});
}
}