Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.16 KB

Guide.Expo.md

File metadata and controls

43 lines (34 loc) · 1.16 KB
id title
Guide.Expo
Expo

Usage with Expo (iOS)

  • Install detox and detox-expo-helpers (yarn or npm)
  • Add detox configuration to package.json:
"detox": {
  "configurations": {
    "ios.sim": {
      "binaryPath": "bin/Exponent.app",
      "type": "ios.simulator",
      "name": "iPhone 7"
    }
  }
}
  • Download the Expo app from Expo.io/tools.
  • Unzip the iOS IPA and rename the folder to Exponent.app. It'll have a file icon but will still be a folder.
  • Create bin folder and put Exponent.app inside so it matches the binaryPath set above.
  • Create an e2e and copy over the settings from the example app

The most important piece of this the reloadApp from detox-expo-helpers. Don't forget this.

const { reloadApp } = require('detox-expo-helpers');
// ...
beforeEach(async () => {
  await reloadApp();
});

Usage with Expo (Android)

  • Usage with Android is currently TBD.

Example App

expo/with-detox-tests