I was using react-native 0.59.1 and recently migrated to react-native 0.61.5 after that when I run react-native run-android I get the following error.

Even with the error the project builds and run properly.
I have heard about auto-linking and as suggested in the error I have unlinked the dependency using the command shown in the error and also run react-native link. After that, the project builds and works fine in iOS but throwing the following error in Android

First, you need to try to run react-native unlink netinfo. Once you've unlinked the library you should use cocoapods, not react-native link .... This is because in React Native v0.61 you no longer manually link 3rd party libraries. Try running:
cd ios
pod install
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