| id | title |
|---|---|
Guide.Expo |
Expo |
- Install
detox9.0.6 or higher,detox-expo-helpersandexpo-detox-hook(yarn or npm) - Add
detoxconfiguration to package.json:
"detox": {
"configurations": {
"ios.sim": {
"binaryPath": "bin/Exponent.app",
"type": "ios.simulator",
"name": "iPhone 7"
}
}
}- Download the Expo Client iOS 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
binfolder and putExponent.appinside so it matches the binaryPath set above. - Create an
e2eand 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 Android is currently TBD.