Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rmc-picker

Package Overview
Dependencies
Maintainers
4
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-picker - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2-alpha.0

8

es/Picker.js

@@ -128,3 +128,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected';
var items = React.Children.map(props.children, function (item) {
// compatibility for preact
var items = [].concat(props.children).map(function (item) {
var _item$props = item.props,

@@ -134,4 +135,3 @@ _item$props$className = _item$props.className,

style = _item$props.style,
value = _item$props.value,
children = _item$props.children;
value = _item$props.value;

@@ -141,3 +141,3 @@ return React.createElement(

{ style: _extends({}, itemStyle, style), className: (selectedValue === value ? selectedItemClassName : itemClassName) + ' ' + className, key: value },
children
item.children || item.props.children
);

@@ -144,0 +144,0 @@ });

@@ -157,3 +157,4 @@ 'use strict';

var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected';
var items = _react2['default'].Children.map(props.children, function (item) {
// compatibility for preact
var items = [].concat(props.children).map(function (item) {
var _item$props = item.props,

@@ -163,4 +164,3 @@ _item$props$className = _item$props.className,

style = _item$props.style,
value = _item$props.value,
children = _item$props.children;
value = _item$props.value;

@@ -170,3 +170,3 @@ return _react2['default'].createElement(

{ style: (0, _extends3['default'])({}, itemStyle, style), className: (selectedValue === value ? selectedItemClassName : itemClassName) + ' ' + className, key: value },
children
item.children || item.props.children
);

@@ -173,0 +173,0 @@ });

{
"name": "rmc-picker",
"version": "4.0.1",
"version": "4.0.2-alpha.0",
"description": "React Mobile Picker Component(web and react-native)",

@@ -28,3 +28,8 @@ "keywords": [

"config": {
"port": 8021
"port": 8021,
"entry": [
"./src/index.tsx",
"./assets/index.less",
"./assets/popup.less"
]
},

@@ -44,3 +49,4 @@ "scripts": {

"coverage": "rc-test run coverage",
"rn-start": "node node_modules/react-native/local-cli/cli.js start"
"rn-start": "node node_modules/react-native/local-cli/cli.js start",
"rn-init": "rc-tools run react-native-init"
},

@@ -57,4 +63,5 @@ "dependencies": {

"@types/mocha": "~2.2.32",
"@types/react": "^15.0.27",
"@types/react-dom": "^15.5.0",
"@types/react": "^16.0.0",
"@types/react-dom": "^15.5.1",
"@types/react-native": "^0.46.9",
"array-tree-filter": "1.x",

@@ -68,4 +75,4 @@ "expect.js": "0.3.x",

"react-dom": "15.5.x",
"react-native": "0.41.x",
"react-native-index-page": "~0.2.0"
"react-native": "~0.42.0",
"react-native-index-page": "~0.2.1"
},

@@ -72,0 +79,0 @@ "typings": "./lib/index.d.ts",

@@ -49,3 +49,3 @@ # rmc-picker

```
./node_modules/rc-tools run react-native-init
npm run rn-init
npm run watch-tsc

@@ -63,2 +63,5 @@ react-native start

> If you are looking for 3.x doc, please see [rmc-picker@3.x](https://github.com/react-component/m-picker/tree/3.x)
## Usage

@@ -116,4 +119,4 @@ ```jsx

|disabled | whether picker is disabled | bool | false
|indicatorClassName | className of indicator | String |
|indicatorStyle | style of indicator | object |
|indicatorClassName | className of indicator | String |
|indicatorStyle | style of indicator | object |

@@ -120,0 +123,0 @@ ### Picker.Item props

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc