Questions tagged [react-native-community-netinfo]
61 questions
10
votes
1 answer
error: package com.facebook.react.bridge does not exist while building react-native app
I have a react native app that was able to build without any problems, however today while trying to start the app on an emulator I got the following…

geninski98
- 161
- 1
- 1
- 10
9
votes
3 answers
@react-native-community/netinfo: NativeModule.RNCNetInfo is null after install latest version
I have updated react native version from 0.57 to 0.59.1. After successful updated it throws error in react native info, so i installed @react-native-community/netinfo and removed Netinfo from react-native.
I have run below commands to install latest…

himanshu
- 461
- 9
- 21
5
votes
1 answer
How do i downgrade expo and install a specific package?
Some of your project's dependencies are not compatible with currently installed expo package version:
- @react-native-community/netinfo - expected version range: 5.5.1 - actual version installed: ^5.8.0
Your project may not work correctly until you…

vicky tr
- 55
- 1
- 2
- 4
4
votes
0 answers
App crashes on AsyncStorage and/or NetInfo import
Enviroment
React Native CLI 0.63.2
Windows 10 x64 bit
Node v14.4.0
Packages (package.json):
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.30",
"@fortawesome/free-solid-svg-icons": "^5.14.0",
…

Nabil214
- 76
- 1
- 4
4
votes
2 answers
React Native's NetInfo not capturing when WiFi is turned back on
I'm building a small component that will show a red strip that says No Connection. It works fine when I turn off wifi, the banner appears alright. When I turn the wifi back on, NetInfo doesn't seem to be getting the event and so the banner stays…

Varun Joshi
- 599
- 2
- 9
- 24
4
votes
1 answer
Expo React Native NetInfo crashing
Environment
Expo CLI 3.11.7 environment info:
System:
OS: Linux 5.0 Ubuntu 18.04.3 LTS (Bionic Beaver)
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 12.14.0 - /usr/bin/node
npm: 6.13.4 - /usr/bin/npm
npmPackages:
…

rodricass
- 155
- 1
- 5
3
votes
0 answers
NetInfo from @redux-offline/redux-offline Invariant Violation error in react-native
After successful build I try to run react native application on the IOS simulator but I've got an error:
Invariant Violation: NetInfo has been removed from React Native. It can now be installed and imported from '@react-native-community/netinfo'…

Dmytro Kruhlyi
- 33
- 4
3
votes
1 answer
null is not an Object (evaluating '_nativeInterface.default.getPhotos') in Cameraroll in react native
Using camera roll library from react native community and import correctly named.
Below is the code for same using expo directory to init the project
import { ActionSheetIOS, ListView, StyleSheet, Text, TouchableOpacity, View, Platform} from…

Swift
- 829
- 2
- 12
- 33
3
votes
3 answers
How to check the internet reachability in React-native?
I've tried @react-native-community/netinfo to check the internet reachability. But the scenario I want to implement is, suppose if my device is connected to a wifi hotspot from another device and if that device's mobile data is turned off I want to…

Vinay N
- 249
- 1
- 8
- 32
2
votes
1 answer
React native check if there is internet connection via listener
In your opinion this is the right approach:
const [isNetwork, setIsNetwork] = useState(true);
const [isChangeNetwork, setIsChangeNetwork] = useState(false);
useEffect(() => {
NetInfo.fetch().then(({ isConnected, isInternetReachable }) =>
…

Paul
- 3,644
- 9
- 47
- 113
2
votes
1 answer
useNetInfo not working when connection is reestablished
I'm using react-native-netinfo to keep track of my device's internet connection. It was working fine for the most part until the point where the internet is disconnected and comes back on. At this point NetInfo does not respond with the correct…

Zephyr
- 1,612
- 2
- 13
- 37
2
votes
2 answers
React Native - NetInfo.addEventListener not triggering when network reconnected
I am trying to implement a offline (and yet to be added - but also a low connection) network error popup message into a clients React Native app.
here is my full view code:
import React, {useState, useEffect} from 'react';
import {Dimensions, View,…

Dancer
- 17,035
- 38
- 129
- 206
2
votes
2 answers
Can't build React Native 0.59.8 android.support.v4.net.ConnectivityManagerCompat
I migrated to the newer React Native and updated some libraries to the latest version. A piece of my project.json:
"@react-native-community/async-storage": "^1.4.1",
"@react-native-community/netinfo": "^3.1.1",
"babel-core":…

Andrei
- 42,814
- 35
- 154
- 218
1
vote
0 answers
Is it possible to detect if the device has Hotspot enable?
I have to find if the device where my application run, has the Wi-Fi enable or if the device is in hotspot mode, else I want to display an error message.
To detect if I am connected to Wi-Fi, I'm using @react-native-community/netinfo, but I can't…

Camille Maurel
- 11
- 1
1
vote
0 answers
Trying to get SSID for iOS using React Native NetInfo
Can not get SSID of iOS device using NetInfo.
I can get the SSID on Android.
I am currently working on a mobile app that requires a specific SSID but I need to determine what the SSID is of the device.
iOS
Entitlements…

Vast
- 21
- 5