There are many great libraries available outside of the Expo SDK, and you may even want to build your own native library. The tradeoff is that the Expo Go app does not allow you to add custom native code - you can only use native modules built into the Expo SDK. Expo Go makes this possible by including a feature-rich native runtime made up of every module in the Expo SDK, so all you need to do to use a module is install the package with npx expo install and reload your app. The Expo Go app is a great tool to get started - it exists to help developers quickly get projects off the ground, to experiment with ideas (such as on Snack) and share their work with minimal friction. Once you've set these up, you can launch your app on an Android Virtual Device by running npm run android, or on the iOS Simulator by running npm run ios (macOS only). If you want to run your app on the iOS Simulator or an Android Virtual Device, please refer to the instructions for "React Native CLI Quickstart" to learn how to install Xcode or set up your Android development environment. Running your app on a simulator or virtual deviceĮxpo Go allows you to run your React Native app on a physical device without installing iOS and Android native SDKs. If you're curious to learn more about React Native, check out the Introduction to React Native. If you have a problem with Expo, before creating a new issue, please see if there's an existing issue about it in the Expo issues. You can also ask for help on the Expo Discord. ![]() Now what?Įxpo also has docs you can reference if you have questions specific to the tool. That's it!Ĭongratulations! You've successfully run and modified your first React Native app. The application should reload automatically once you save your changes. Open App.js in your text editor of choice and edit some lines. Now that you have successfully run the app, let's modify it. On iOS, use the built-in QR code scanner of the default iOS Camera app. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. Install the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. How do I force an update to the latest version?Ĭreate a project with the desired SDK version and open it in a simulator to install a particular version of Expo Go.This will start a development server for you. You may need to interact with the simulator (click around, drag something) for this prompt to show up, then press OK. The first time you install the app in the simulator, iOS will ask if you'd like to open the Expo Go app. Simulator opened but the Expo Go app isn't opening inside of it You can also open multiple simulators at the same time, however, Expo CLI will always target the most recently opened simulator. You can use this menu to open any version of the simulator. If it seems stuck on this prompt, you can open the iOS Simulator manually ( open -a Simulator) and then in the macOS toolbar, choose File > Open Simulator, and select an iOS version and device that you'd like to open. Sometimes the iOS Simulator doesn't respond to the open command. ![]() Troubleshooting The CLI seems to be stuck when opening a Simulator The Simulator also suspends background apps and processes on iOS 11 and later. Motion Support (accelerometer and gyroscope).The following hardware is unavailable in the Simulator: We'll list out a few of the main differences that affect Expo APIs here, however, Apple's documentation goes into more detail. LimitationsĪlthough the iOS Simulator is great for rapid development, it does come with a few limitations. You can also press Shift + i in the Expo CLI to interactively select a simulator to open.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |