EQuimper / twitter-clone-with-graphql-reactnative

164 stars 71 forks source link

fix for TypeError: Network request failed on genymotion #42

Open alecperkey opened 6 years ago

alecperkey commented 6 years ago

to run exp+genymotion+debugging, exp suggest to use flags --lan or --localhost with exp start I use exp start --lan, so I must do changes linked below

https://github.com/alecperkey/twitter-clone-with-graphql-reactnative/commit/b25455ea6149f1847e6cf5214197fe11ad1a297b

I did try unsuccessfully --localhost (seems to cause even more issues with string concat of uris)

alecperkey commented 6 years ago

by the way... i commented out the line which actually fixes it, you need to replace 'localhost' with your rn packager hostname, which will vary between users.

for me it looks like this: https://github.com/alecperkey/twitter-clone-with-graphql-reactnative/commit/e0a81dd910368275930926801b2486111f518578#diff-4eeee9289b095014159a4a9b4197442eL12