Issue importing 'Input' component
See original GitHub issueDescription
- Explain what you did Trying to use ‘Input’ element
- What you expected to happen Should be hassle free experience to import and use it, but ended with the error
- What actually happens Invariant Violation.Element Type is invalid
Also please include the version of react-native-elements
that you are using.
“react-native-elements”: “0.19.0”
Reproduction Steps and Sample Code
https://snack.expo.io/By8z_AqHf
When the module was installed inside react-native-elements/src/input folder there was no file input.js, however in https://github.com/react-native-training/react-native-elements the same input.js file is seen under react-native-elements/src/input folder.

Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Cannot import Input component with v0.19.0 #1025 - GitHub
Descripwtion. i imported Input = import { Input } from "react-native-elements";; i used the component i exepected to work; actually an error occured....
Read more >Cannot import my custom components in Angular
One thing to point out, if your Input component has a module, import that module inside the Widgets module (and then export it...
Read more >Using Material UI with React Hook Form - LogRocket Blog
React Hook Form exports some utility from the famous useForm Hook, which you then use inside your input components. First, import the useForm ......
Read more >Set the value of an Input component.
Topic : Set the value of an Input component. ... Arnoud import React from "react"; import {Input, Button} from 'mdbreact'; export class InputTest...
Read more >react-phone-number-input - npm
"With country select" component imported from react-phone-number-input/core subpackage doesn't have default values for the following properties:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed this by using “FormInput” instead of “Input”, but not sure if this is recommended
@repl-ullas-ml You’re looking two different versions of RNE. On github the
v1.0.0-beta
is onmaster
, but your version is thev0.19.0
.On the
v0.19.0
: • You must importFormInput
On the
v1.0.0-beta
: • TheFormInput
has been refactored and renamed, and is now exported asInput
.So @mlchild, if you’re on
v0.19.0
, you must useFormInput
, as you did 👍