Skip to content

Commit 1bef6fc

Browse files
author
August Oberhauser
committed
fix iOS picker style using spread operator (bietkul#1)
1 parent 05fce48 commit 1bef6fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/fields/picker/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export default class PickerField extends Component {
5454
}
5555
return (
5656
<View
57-
style={Object.assign(styles.pickerMainIOS, {
58-
backgroundColor: theme.pickerBgColor,
59-
borderBottomColor: theme.inputBorderColor,
60-
borderBottomWidth: theme.borderWidth,
61-
})}
57+
style={{...styles.pickerMainIOS,
58+
backgroundColor: theme.pickerBgColor,
59+
borderBottomColor: theme.inputBorderColor,
60+
borderBottomWidth: theme.borderWidth,
61+
}}
6262
>
6363
<TouchableOpacity
6464
onPress={() => this.panel.toggle()}
@@ -100,4 +100,4 @@ export default class PickerField extends Component {
100100

101101
);
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)