1. Error content
evaluating project ‘:react-native-community_netinfo’.
Could not get unknown property ‘com’ for extension ‘android’ of type com.android.build.gradle.LibraryExtension
Two, error handling
This is a problem with the version of the netinfo package. Later, I downloaded the version 3.5.3.
Then I changed it to:
"@react-native-community/netinfo": "eact-native-community/react-native-netinfo",