现在,我正试图在世博会上创建React Native应用程序,并使用React-导航选项卡栏,但我做不到。 实际上,我没有得到任何错误,但下面的代码不起作用。 也没有警告。 import { createBottomTabNavigator, createAppContainer } from 'react-
navigation';
import Icon from 'react-native-vector-icons/FontAwesome';
import Home from './src/Screens/Home'
在使用createMaterialTopTabNavigator()与React导航v5进行本机反应时,我看到了以下错误:
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