react-native-slider
react-native-slider copied to clipboard
Invariant Violation: Element type is invalid
I have crtaed a slider using the example. But it is not working. Please advice.
Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of MySlider.
How are you importing the module? I got it working with:
import Slider from 'react-native-slider'
How are you importing the module? I got it working with:
import Slider from 'react-native-slider'
Thanks, it solved my problem :)
working here with import Slider from 'react-native-slider'
:+1: