NetInfo.getConnectionInfo() function not found Expo SDK 32 Latest (ERROR)

NetInfo.getConnectionInfo().then((connectionInfo) => {
  console.log('Initial, type: ' + connectionInfo.type + ', effectiveType: ' + connectionInfo.effectiveType);
});
function handleFirstConnectivityChange(connectionInfo) {
  console.log('First change, type: ' + connectionInfo.type + ', effectiveType: ' + connectionInfo.effectiveType);
  NetInfo.removeEventListener(
    'connectionChange',
    handleFirstConnectivityChange
  );
}
NetInfo.addEventListener(
  'connectionChange',
  handleFirstConnectivityChange

I check each funciton /methods and import the Netinfo from expo but it returns the error message functions not found

Netinfo on react native Deprecated

and updated version

Thanks in advance - please help me anyone can :slight_smile:
:expressionless:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.