Skip to content

Commit

Permalink
fix(android): Fix Picker for Android when initialising it with null v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
tpucci authored Apr 9, 2018
1 parent 0b98f00 commit 25a5c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withPickerValues/PickerModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PickerModal extends PureComponent<PropsType> {
values.unshift({ value: '', label: placeholder });
} else {
// Fix for issue: https://github.com/facebook/react-native/issues/15556
values.push({ value: '', label: '' });
values.unshift({ value: '', label: '' });
}
const picker = (
<Picker onValueChange={this.onValueChange} selectedValue={value} prompt={placeholder}>
Expand Down

0 comments on commit 25a5c3a

Please sign in to comment.