message: Fix for issue #1918(picker TypeError: Cannot read property 'value' of undefined)
diff: @@ -26,7 +26,7 @@ class PickerNB extends Component {
  this.state = {
  modalVisible: false,
  currentLabel: this.getLabel(props),
  - dataSource: props.children
  + dataSource: this.getChildren(props.children)
  };
  }
  @@ -34,7 +34,7 @@ class PickerNB extends Component {
  const currentLabel = this.state.currentLabel;
  const nextLabel = this.getLabel(nextProps);
  const currentDS = this.state.dataSource;
  - const nextDS = nextProps.children;
  + const nextDS = this.getChildren(nextProps.children);
  if (currentLabel !== nextLabel) {
  this.setState({
  @@ -70,8 +70,9 @@ class PickerNB extends Component {
  }
  getLabel(props) {
  + let children = this.getChildren(props.children);
  const item = _.find(
  - props.children,
  + children,
  child => child.props.value === props.selectedValue
  );
  return _.get(item, "props.label");
  @@ -84,6 +85,13 @@ class PickerNB extends Component {
  );
  }
  + getChildren(children) {
  + if (children && !Array.isArray(children)) {
  + return [].concat(children)
  + }
  + return children;
  + }
  +
  renderIcon() {
  return React.cloneElement(this.props.iosIcon, {
  style: [{
  