callstack / react-native-brownfield

Set of helpers to make your brownfield integration smooth and easy.
MIT License
227 stars 14 forks source link

feat(android): Add packager connection check #26

Closed krizzu closed 4 years ago

krizzu commented 4 years ago

Summary

If RN activity is launched without packager running, you'll see empty screen with no messages/views. This PR adds a packager connection check on activity startup.

Test plan

  1. Install example app on the device/emulator
  2. Do not start packager
  3. Launch app, open React Native Activity screen
  4. You should see red box with connection error