[email protected]; We will be walking through. Creating a new React Native app; Running it in iOS Simulator; Running it in Android Emulator; Potential setup issues; Initial Setup. First install Homebrew — follow the directions on the Homebrew homepage as the script gets updated from time to time. ![]() I'm using React Native at work on the latest macOS version, allowing me to easily use Simulator for testing and debugging on iOS. Now I want to debug and test on Android. I have a personal Android device, but it's hard for me to get the app working on it using Expo (don't have a physical cable on me atm, and security at work makes it hard for tunneling service to work over the same network with our staging build). I'm trying to get an Android emulator running on macOS. I personally hate Android Studio and would rather not use it. I know that there's sdkmanager and the that Microsoft provides, but I'm not sure how to get started using with those. I'd be using Genymotion if it was free, but it isn't unfortunately. What do other React Native developers who test and debug on Android do? Of course you must avoid Android Studio when it's not really needed, like in the case of Cordova apps, you are totally right. To get started with the emulators using the Android SDK and AVD (emulators) manager GUI app (not the command line) you must carefully follow these steps: • Intall Android SDK tools v24 (yes, 24 and not other) • Update them to SDK tools v27 (manually) • Download your desired SDK platform and system images from SDK Manager • Create your emulators and run them from the AVD manager All these steps are detailed on this guide: Note that depending on your processor, additional steps are required to enable optimizations like Intel HAXM or Hypervisor, as explained at the bottom of the linked article. I hope this gets you started in the right direction. There are some methods to connect your Android and iOS device wirelressly without USB cable, but it requires the device connected first to restart adb in tcp port 5555. This is basically taken from a private README that I use and cleaned up for public consumption. It doesn't really have the humor that I try to bring to these things, and I tried to keep it simple for Japanese speakers that I can point here when they need help. Very quick and dirty, may clean up later. This is only for Mac. If you aren't using Mac for React Native dev - do it, it's pretty great. Setting up a react native environment Steps Software installs and file setup Install Xcode from the app store - Xcode is a program that runs iOS apps for you, and lets you start a simulator for your app so you can develop without needing a physical iPhone. Install a Java Development Kit - you need this to make Android apps in React Native Accept license agreement, Mac OS X x64 Install Android Studio (google this). This is how we will run android simulators so we don't need an Android phone open to check our work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |