当我的应用程序安装在我的设备/模拟器上时,我收到此错误:
错误:捆绑失败:错误:无法解析模块
DrawerLayoutAndroid
来自/Users/anandchandran/Desktop/cognito-RN/node_modules/react-native/Libraries/react-native/react-native-implementation.js
:模块
DrawerLayoutAndroid
在匆忙模块映射中不存在
运行npm link
为我解决了问题
在此处找到的文档
只需从"/Users/anandchandran/Desktop/cognito-RN/node_modules/react-native/Libraries/react-native/react-native-implementation.js"中删除"DrawerLayoutAndroid">
它现在工作正常.. 如果仍然遇到一些错误,请删除节点模块并重新安装并链接它。