recr0ns / react-native-material-switch

MIT License
80 stars 83 forks source link

Element type is invalid: expected a string (for built-in components) #18

Open dinukasal opened 7 years ago

dinukasal commented 7 years ago

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of project_name. 0-02-06-d43aa8cf35aa053f058cf44557c21dc13285b6fd9c4bfced84eb76031122dfee_full

I get this error when just using the material switch. Please help!

airTradies commented 5 years ago

I am receiving the same message. Almost as though it is from the import statement maybe. I ahve tried the following..

import { Switch, Thumb } from "react-native-material-kit";
import Switch, Thumb from "react-native-material-kit";
import Switch from "react-native-material-kit";
import { Switch } from "react-native-material-kit";