Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Libraries/Components/Picker/PickerIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class PickerIOS extends React.Component<Props, State> {
static getDerivedStateFromProps(props: Props): State {
let selectedIndex = 0;
const items = [];
React.Children.toArray(props.children).forEach(function(child, index) {
React.Children.toArray(props.children).filter(child => child !== null).forEach(function(child, index) {
Comment thread
Rahulkishanm marked this conversation as resolved.
Outdated
if (child.props.value === props.selectedValue) {
selectedIndex = index;
}
Expand Down