Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native link creates duplicated entries

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.

react-native link result

like image 292
David Rojo Avatar asked Nov 08 '22 20:11

David Rojo


1 Answers

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!

like image 129
Atala Avatar answered Nov 15 '22 07:11

Atala