product-detail

1.0.1 • Public • Published

product-detail

The card component which have motion of flip for React Native(iOS/Android)

NPM

npmnpm

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,//已经选择的商品
        }
      });
    }
  }

Readme

Keywords

none

Package Sidebar

Install

npm i product-detail

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • caoguodong