Skip to content

Initial value not set #8

@tpucci

Description

@tpucci

When using the makeReactNativeField, the initialValue is no longer set (since v1.0.2).
I guess setFormikInitialValue hoc is not setting the initial value even if it is set in its props.

const setFormikInitialValue = WrappedInput => {
  return class WithFocusProp extends React.PureComponent {
    constructor(props) {
      super(props);
      props.formik.setFieldValue(props.name, "");
    }

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions