在控制台中启动应用程序时,我看到了 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);