React Native RCTNetworking.sendRequest received 6 arguments expected 7

I have a React Native project that I created for iOS, and now I would like to make it work on Android. I followed the instructions and created the react-native run-androidroot form of the project.

When it loads into Android emulator, I get a red error screen that says:

React Native RCTNetworking.sendRequest got 6 arguments, expected 7

+4
source share
1 answer

I found this to be posted on github :

You are RN JS and the native code is not synchronized. Run react-native upgradeinto your project to solve the problem.

I ran react-native upgradeout of my project root and then react-native run-androidagain. My project is uploaded correctly.

0
source

All Articles