render() {
    let fields = {
      password: Password
    }

    if (this.props.route && this.props.route.shouldRequireVerification) {
      fields.verificationCode = t.Num
    }

    const ResetPasswordCodeForm = t.struct(fields)

    return (
      <View style={[
        FormStyles.formContainer,
        BaseStyles.col1
      ]}>
        <View style={[
          FormStyles.form,
          BaseStyles.col1,
          BaseStyles.lightBg,
          BaseStyles.centeredCols
        ]}>
          <Form
            ref="form"
            type={ResetPasswordCodeForm}
            onChange={this.onChange.bind(this)}
            options={this.getOptions()}
            value={this.state.value} />
        </View>
        <View style={[
          FormStyles.saveBtn,
          BaseStyles.bottom,
          {bottom: this.state.resetBtnLocation}
        ]}>
          <SaveBtn
            isSaveBtnDisabled={this.state.isResetBtnDisabled}
            isUpdating={this.props.isUpdating}
            hasBeenSaved={this.props.isReset}
            saveTerm="Reset Password"
            savingTerm="Resetting Password..."
            savedTerm="Password Reset"
            onPress={this.onResetPassword.bind(this)} />
        </View>
      </View>
    )
  }
/**
   * Render the reset password form.
   *
   * @return {object} component
   */
Render the reset password form.
@return {object} component
Render the reset password form . @return { object } component
render() {
    let fields = {
      password: Password
    }
    if (this.props.route && this.props.route.shouldRequireVerification) {
      fields.verificationCode = t.Num
    }
    const ResetPasswordCodeForm = t.struct(fields)
    return (
      <View style={[
        FormStyles.formContainer,
        BaseStyles.col1
      ]}>
        <View style={[
          FormStyles.form,
          BaseStyles.col1,
          BaseStyles.lightBg,
          BaseStyles.centeredCols
        ]}>
          <Form
            ref="form"
            type={ResetPasswordCodeForm}
            onChange={this.onChange.bind(this)}
            options={this.getOptions()}
            value={this.state.value} />
        </View>
        <View style={[
          FormStyles.saveBtn,
          BaseStyles.bottom,
          {bottom: this.state.resetBtnLocation}
        ]}>
          <SaveBtn
            isSaveBtnDisabled={this.state.isResetBtnDisabled}
            isUpdating={this.props.isUpdating}
            hasBeenSaved={this.props.isReset}
            saveTerm="Reset Password"
            savingTerm="Resetting Password..."
            savedTerm="Password Reset"
            onPress={this.onResetPassword.bind(this)} />
        </View>
      </View>
    )
  }
render ( ) { let fields = { password : Password } if ( this . props . route && this . props . route . shouldRequireVerification ) { fields . verificationCode = t . Num } const ResetPasswordCodeForm = t . struct ( fields ) return ( < View style = { [ FormStyles . formContainer , BaseStyles . col1 ] } > < View style = { [ FormStyles . form , BaseStyles . col1 , BaseStyles . lightBg , BaseStyles . centeredCols ] } > < Form ref = "form" type = { ResetPasswordCodeForm } onChange = { this . onChange . bind ( this ) } options = { this . getOptions ( ) } value = { this . state . value } / > < / View > < View style = { [ FormStyles . saveBtn , BaseStyles . bottom , { bottom : this . state . resetBtnLocation } ] } > < SaveBtn isSaveBtnDisabled = { this . state . isResetBtnDisabled } isUpdating = { this . props . isUpdating } hasBeenSaved = { this . props . isReset } saveTerm = "Reset Password" savingTerm = "Resetting Password..." savedTerm = "Password Reset" onPress = { this . onResetPassword . bind ( this ) } / > < / View > < / View > ) }
Render the reset password form.
Render the reset password form .