Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native iOS error - "RCTNetworking.sendRequest not found"

I'm getting a compilation error RCTNetworking.sendRequest not found in react native iOS after creating and importing a new react component. ESlint isn't showing any JS errors introduced from the change.

like image 997
Kevin Qi Avatar asked Dec 05 '22 19:12

Kevin Qi


1 Answers

It looks like this error can be caused by having multiple debugger tabs open in Chrome.

As a previous answer said, doing a Clean and a Reset Content will temporarily clear the error, but if you have multiple debugger tabs open, as soon as you try debugging again the error will come right back.

Try closing all of the debugger tabs and then reopening only one. This should fix it.

like image 163
Clayton Gulick Avatar answered Dec 31 '22 03:12

Clayton Gulick