I am creating a react-native app and one of the components I have created contains a property which is populated through data coming from an http request.
Right now I am hosting the server from my laptop, however I am testing the app on my phone using the Expo app. Since these are two separate devices, the http://localhost:3000 calls are not working and thus I can not tell whether or not my component is properly working.
Is there any way for me to run the server on my laptop and set it up so that the http requests from within the Expo app reach the server?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…