Kevin Qi
Kevin Qi

Reputation: 3260

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.

Upvotes: 4

Views: 1219

Answers (2)

Clayton Gulick
Clayton Gulick

Reputation: 10365

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.

Upvotes: 9

Kevin Qi
Kevin Qi

Reputation: 3260

The error went away after running Product -> Clean in Xcode and Reset Content and Settings in Simulator. This didn't seem to be an issue with my code, so it might be a bug in react native.

Upvotes: 6

Related Questions