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?
There are three main approaches: you can use Expo Go, a development build, or you can run your project as a standalone app. Download Expo Go from the Apple App Store or from the Google Play Store. On your iPhone or iPad, open the default Apple "Camera" app and scan the QR code you see in the terminal.
As the Expo Client App is updated due to new Apple's approval requirements, please follow the steps below to launch the App in a real iOS device: Open MobileSafari in your iOS device. Type the URL shown in Expo XDE (should be something like exp://192.168.123.123:19000). Alternatively, you can click "Share" button in Expo XDE to show a QR Code.
The first step before publishing the Expo app is adding the build information to the app.json file. The required items are: name, icon and version. You also have to add a bundle identifier and build number for iOS and package name and version code for android apps. The Expo team suggests adding also slug – it represents a piece of url for our app.
After you create a project, you can build and run your app on a simulated or real device without needing to lay out the user interface or write code. You may connect a real device to your Mac using a cable, or for iOS or tvOS apps, connect it over WiFi after you pair it with Xcode.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With