JSPM

react-native-easy-picker

1.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q33676F
  • License MIT

react-native-easy-picker is a single picker

Package Exports

  • react-native-easy-picker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-easy-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-easy-picker

react-native-easy-picker 是一个单项选择的 picker,设计为非受阻组件,组件内部自己维护选择状态。

Installation

yarn add react-native-easy-picker

react-native link react-native-vector-icons

Usage

import Picker from 'react-native-easy-picker';

<Picker
    iconColor='#333'
    initIndex={0}    // <-- default selected index
    data={[... new Array(4)].map((v, i) => ({
        id: i + 1,
        text: 'text-' + (i + 1),
        value: 'value-' + (i + 1),
    }))}
    onChange={item => console.log(item)}
    animationType='none'
    alpha={0.5}
    textStyle={{
        fontSize: 24,
    }}
    itemTextStyle={{
        color: '#333'
    }}
/>