当我使用 React 导航版本 6.1.1 时。我面临这个错误。 类型错误:无法读取未定义的属性“createDrawerNavigator”
我已经从@react-navigation/drawer导入了createDrawerNavigator。但是当我启动应用程序时,我看到了这个错误 TypeError: Cannot read property 'createDrawerNavigator' of undefined。我该如何解决这个错误?
最佳答案
我们必须在主索引文件中导入手势处理程序。像这样
import 'react-native-gesture-handler';
关于react-native - 类型错误 : Cannot read property 'createDrawerNavigator' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74859163/