File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,13 @@ const PICKER_MODES = {
22
22
MULTI : 'MULTI'
23
23
} ;
24
24
const ItemType = PropTypes . oneOfType ( [
25
- PropTypes . number ,
25
+ PropTypes . number ,
26
26
PropTypes . string ,
27
27
PropTypes . shape ( {
28
28
value : PropTypes . any ,
29
29
label : PropTypes . string
30
- } ) ] ) ;
30
+ } )
31
+ ] ) ;
31
32
32
33
/**
33
34
* @description : Picker Component, support single or multiple selection, blurModel and nativePicker
@@ -260,7 +261,7 @@ class Picker extends Component {
260
261
if ( _ . isFunction ( getLabel ) && ! _ . isUndefined ( getLabel ( value ) ) ) {
261
262
return getLabel ( value ) ;
262
263
}
263
-
264
+
264
265
if ( _ . isArray ( value ) ) {
265
266
return this . getLabelsFromArray ( value ) ;
266
267
}
@@ -274,7 +275,7 @@ class Picker extends Component {
274
275
const selectedItem = _ . find ( items , { value} ) ;
275
276
276
277
return _ . get ( selectedItem , 'label' ) ;
277
- }
278
+ } ;
278
279
279
280
getFilteredChildren = memoize ( ( children , searchValue ) => {
280
281
const { getItemLabel : getItemLabelPicker } = this . props ;
@@ -336,7 +337,11 @@ class Picker extends Component {
336
337
_ . invoke ( this . props , 'onSearchChange' , searchValue ) ;
337
338
} ;
338
339
339
- onSelectedItemLayout = ( { nativeEvent : { layout : { y} } } ) => {
340
+ onSelectedItemLayout = ( {
341
+ nativeEvent : {
342
+ layout : { y}
343
+ }
344
+ } ) => {
340
345
this . setState ( { selectedItemPosition : y } ) ;
341
346
} ;
342
347
@@ -400,7 +405,7 @@ class Picker extends Component {
400
405
listProps = { listProps }
401
406
onShow = { onShow }
402
407
>
403
- { this . children }
408
+ { this . children }
404
409
</ PickerModal >
405
410
</ PickerContext . Provider >
406
411
) ;
You can’t perform that action at this time.
0 commit comments