canOverrideExistingModule issue in react-native application

陌路散爱 提交于 2019-12-10 23:15:37

问题


Hello every one i tried to create an camera app with react-native-camera module when i tried to run this app on my device (android mobile) getting following error. Can any one please provide me solution for this ?


回答1:


Go to file "MainApplication.java" (under .\android\app\src\main\java\com\projectName)

Make sure that under getPackages() function you don't have duplicate lines (in my case I had "new RCTCameraPackage()" twice).

Fix duplicate imports as well.



来源:https://stackoverflow.com/questions/44126722/canoverrideexistingmodule-issue-in-react-native-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!