RCTNetworking - didReceiveNetworkIncrementalData error w/ RN 0.31
See original GitHub issueGreetings,
I am getting redbox using NetInfo on RN 0.31. I do not get this error when I downgrade to RN 0.30. I am using code very similar to the NetInfo example in the RN documentation to check connectivity status. Let me know if you need any additional details.
Here’s the code I am using to check connectivity status:
NetInfo.isConnected.addEventListener(
'change',
this.handleConnectivityChange.bind(this)
);
handleConnectivityChange(isConnected) {
switch (isConnected) {
case true:
this.setState({
connectivity: true
});
break;
case false:
this.setState({
connectivity: false
});
break;
}
}
componentWillUnmount() {
NetInfo.isConnected.removeEventListener(
'change',
this.handleConnectivityChange.bind(this)
);
System info
- OSX 10.11.3
- RN 0.31
- iOS 9.3, running on simulator and device
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
react native update to 0.31.0 RCTNetwork error - Stack Overflow
I update react-native to 0.31.0, redbox as follow: enter image description here. After remove the fetch method in my project, the error box ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
if you use
react-native run-ios
report this error.try use
Xcode
to run.It seems like a number of people have found these workarounds valid so I am going to close this issue. Thanks folks for reporting this!