Open DragoNico10 opened 1 year ago
Couldn't find version numbers for the following packages in the issue:
react-native-tab-view
flipper-plugin-react-navigation
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/drawer
(found: 6.0.0
, latest: 6.5.6
)@react-navigation/native
(found: 6.0.0
, latest: 6.1.1
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Current behavior
I'm trying to make a calculator and navigating screens with Drawer Navigator, but when I try to render it it says: `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.
Check the render method of 'Calculator'.`
App.js: import * as React from 'react'; import DrawerNavigator from './components/DrawerNavigator.js'
export default function App(){ return( \<DrawerNavigator/> ) }
My DrawerNavigator is:
import React from 'react' import { Text } from 'react-native' import { createDrawerNavigator } from '@react-navigation/drawer' import { NavigationContainer } from '@react-navigation/native' import Calculator from '../screens/Calc.js' import History from '../screens/History' import Options from '../screens/Options'
const Drawer=createDrawerNavigator()
const DrawerNavigator=()=>{ return( \<NavigationContainer>