I want to make a simple bottom tab navigator, but I keep getting the same error…
Error: 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
I know the imports are correct, because when I use another Navigator the LoginScreen does work… Any ideas?
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
import LoginScreen from "../screens/LoginScreen";
const Tabs = () => {
const Tab = createBottomTabNavigator;
return(
<Tab.Navigator>
<Tab.Screen name="LoginScreen" component={LoginScreen}/>
</Tab.Navigator>
);
}
export default Tabs;