TypeError:超级表达式必须为null或函数react-native

时间:2020-08-06 00:17:49

标签: react-native

在控制台中启动应用程序时,我看到了 console logs

这是在我安装了反应导航和相关模块之后出现的。

AppNavigation.js文件

import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import {LoginScreen} from '../screens/LoginScreen';
import {RegistrationScreen} from '../screens/RegistrationScreen';

const Navigator = createStackNavigator({
    Login: LoginScreen,
    Registration: {
        screen: RegistrationScreen,
    },
});

export const AppNavigation = createAppContainer(Navigator);

0 个答案:

没有答案