更新时间:2023-10-20 12:12:34
是的,它可以并且很容易让它运行。
步骤1:打开Expo XDE,然后单击灰色齿轮将主机模式更改为LAN。确保启用了开发模式。你会在你面前看到一个URL。等到打包机开始运行。
I am using Expo to run my application. I am able to see two options in Expo XDE:
I want to run my app by directly connecting to my device. Is it possible with Expo?
Yes, it is possible, and quite easy to get it running.
Step 1: Open Expo XDE, and click on the gray cog to change host mode to LAN. Make sure you enabled Development Mode. You'll see an URL right in front of you. Wait until packager to start running.
Step 2: Open Expo App in your mobile device, and click on the second tab 'Explore' and enter the URL that starts with exp://192.168...
This is a local connection to your computer. You will see your app running in a minute.
Make sure your phone and computer are on the same WiFi!
For further information, you may refer to official documents here.