Skip to content

Commit

Permalink
fix: item style
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Dec 13, 2018
1 parent 01e96ef commit 0c26dc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/picker/NativePicker.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,14 @@ class Picker extends React.Component<IPickerProp & PickerProps, any> {
if (selectedValue === item.props.value) {
totalStyle.push(styles.selectedItemText);
}
totalStyle.push(itemStyle);
return (
<View
ref={el => ((this as any)[`item${index}`] = el)}
onLayout={index === 0 ? this.onItemLayout : undefined}
key={item.key}
>
<Text
style={[{ includeFontPadding: false }, totalStyle]}
style={[{ includeFontPadding: false }, totalStyle, itemStyle]}
numberOfLines={1}
>
{item.props.label}
Expand Down

0 comments on commit 0c26dc0

Please sign in to comment.