Skip to content

setTime does not work for TimePicker #108

@nickrobinson352

Description

@nickrobinson352

the setTime API in TimePicker does not work for ios as there is a missing ref in TimePickerField.ios.js.

 setTime(date){
    this.refs.datePickerComponent.setDate(date);
  }

return(<DatePickerComponent
      {...this.props}
      mode="time"
 => ref='datePickerComponent'
      labelStyle={[formStyles.fieldText, this.props.labelStyle]}
      valueStyle = {[formStyles.fieldValue,this.props.valueStyle]}
      valueContainerStyle = {[formStyles.alignRight,
          formStyles.horizontalContainer, this.props.valueContainerStyle]}
      containerStyle={[
        formStyles.fieldContainer,
        formStyles.horizontalContainer,
        this.props.containerStyle,
      ]}
      />)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions