[SOLVED] How to use Apollo Client in React Native?

I’m trying connect a RN app to Apollo server and I keep getting this error:

TypeError: Network request failed at XMLHttpRequest.xhr.onerror (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:24455:8) at XMLHttpRequest.dispatchEvent (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:10259:15) at XMLHttpRequest.setReadyState (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:26024:6) at XMLHttpRequest.__didCompleteResponse (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:25872:6) at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:25966:52 at RCTDeviceEventEmitter.emit (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:9498:23) at MessageQueue.__callFunction (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7353:34) at http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7235:8 at guard (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7166:1) at MessageQueue.callFunctionReturnFlushedQueue (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7234:1)

GraphiQL and webapp are working fine. How should I solve this?

Solved!

adb reverse tcp:3000 tcp:3000

then Reload JS.