How to set canOverrideExistingModule=true in React Native for Android Apps?

前端 未结 12 1033
我寻月下人不归
我寻月下人不归 2020-12-23 18:53

I built an android app using React Native, it got built successfully but when I run the app in my Android Virtual Device it shows up a full red screen with the following err

12条回答
  •  醉酒成梦
    2020-12-23 19:44

    If the version of RN you're using is >= 0.60 then there is the possibility that auto-linking and your manual linking are doing the same thing twice. You have two options:

    1- You can revert code changes in getPackages method
    2- You can disable auto linking in react-native-config.js file.

提交回复
热议问题