I don't know why react-native link
is creating duplicated entries in MainApplication.java
(at imports and in getPackages function) and in app\build.gradle
the compile project
entry is not being added, but if I run again the command, I receive the same message instead of that the module is already linked.
When I run react-native link
, I receive the messages that the module has been linked successfully on Android (duplicated) and in iOS it was already linked.
Many users are encountering the issue on Android (me included). It is due to difference between iOs and Android code-signin.
There is an opened (and recent) PR for this on the react-native project https://github.com/facebook/react-native/pull/18131 - hopefully it will be merged soon!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With