0

I want to connect to localhost API on my laptop from my react native application on my android device. I saw this reply here

React Native Android Fetch failing on connection to local API

There it is suggested to shake the device, this will open developers menu and then click on dev settings. However when I shake the device and open the developers menu there is no dev settings option. I am attaching the screen shot of developers menu.Screen shot of developers menu

what is happening here ? moreover is there any other way to connect my device to localhost api on my laptop??

Basit Minhas
  • 267
  • 1
  • 6
  • 18

1 Answers1

0

Apparently this option is only available when using react-native-cli and not expo -cli.

i am now using ngrok to connect rest api in my laptop to my react native expo app in mobile device

Basit Minhas
  • 267
  • 1
  • 6
  • 18