Skip to content

Commit c6f80b4

Browse files
committed
fix(picker): allow empty placeholder on iOS
1 parent a52ed73 commit c6f80b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/withPickerValues/PickerModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PickerModal extends PureComponent<PropsType> {
2626
if (!this.props.values || !this.props.values.length) return null;
2727
const values = [...this.props.values];
2828
if (Platform.OS === 'ios') {
29-
values.unshift({ value: '', label: placeholder });
29+
values.unshift({ value: '', label: placeholder || '' });
3030
} else {
3131
// Fix for issue: https://github.com/facebook/react-native/issues/15556
3232
values.unshift({ value: '', label: '' });

0 commit comments

Comments
 (0)