Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: View config not found for name input #126

Open
rubyvictor opened this issue Jul 10, 2018 · 0 comments
Open

Invariant Violation: View config not found for name input #126

rubyvictor opened this issue Jul 10, 2018 · 0 comments

Comments

@rubyvictor
Copy link

rubyvictor commented Jul 10, 2018

React-toggle used with Redux Form keeps throwing this error:

Invariant Violation: View config not found for name input, even though props successfully passes 'name' to the Form via my Component.

This is the snapshot of the Component:

    const {
      id,
      input: { name, onChange, value },
      meta: { touched, error, warning }
    } = this.props;
    return (
      <View>
        <Toggle
          name={name}
          value={value}
          id={id}
          checked={true}
          value="yes"
          onChange={onChange}
          icons={false}
          disabled={false}
        />
      </View>
    );
  }```

And I pass the component into Redux Form:
```<View>
        <Field component={ToggleInput} name="gender" id="id"/>
      </View>```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant