moversflow.blogg.se

React native run android emulator mac
React native run android emulator mac






On Mac, you can find the IP address in System Preferences / Network.

react native run android emulator mac

  • Type in your machine's IP address and the port of the local dev server (e.g.
  • Open the Developer menu by shaking the device or running adb shell input keyevent 82 from the command line.
  • You'll see a red screen with an error.
  • You can do this the same way you'd open any other app.
  • Open your React Native app on your device.
  • Make sure your laptop and your phone are on the same Wi-Fi network.
  • JsCodeLocation = [NSURL Configure your app to connect to the local dev server via Wi-Fi # Select 'Debug server host & port for device' to set a different port.įor IOS: Edit the AppDelegate.m and change the line below to match the port number you're running: Launch the packager manually with react-native start -port įor Android: Use the developer menu by clicking the menu button or shake. Running packager on a non-standard port #
  • You can use Reload JS and other development options with no extra configuration.
  • #React native run android emulator mac how to

    Have your device connected via USB with debugging enabled (see paragraph above on how to enable USB debugging on your device). Note that this option is available on devices running android 5.0+ (API 21). Alternatively, you can run the command adb shell input keyevent 82 to open the dev menu (82 being the Menu key code). In that case you can shake the device to open the dev menu (to reload, debug, etc.). Most modern android devices don't have a hardware menu button, which we use to trigger the developer menu.

    react native run android emulator mac

    Follow one of the steps described below to make your development server running on your laptop accessible for your device. You can also iterate quickly on device using the development server.

    react native run android emulator mac

    TA9300GLMK device Accessing development server from device #






    React native run android emulator mac