react native我同学以她的经验告诉过我不要去使用新版。然鹅我是个凡是就喜欢新版的,这不问题来了
react-navigation版本更新的问题
原来的代码
import { createBottomTabNavigator, createStackNavigator, createAppContainer, createSwitchNavigator, } from 'react-navigation';
修改:
先按装对应的模块 yarn add react-navigation-tabs
再修改代码
import { createStackNavigator, createAppContainer, createSwitchNavigator, } from 'react-navigation';
import { createBottomTabNavigator } from "react-navigation-tabs";

网友评论