react-native-detect-maestro
Use this library to detect React Native App is running within the context of Maestro. (based on: https://maestro.mobile.dev/advanced/detect-maestro-in-your-app)
- support React Native's New & Old Architecture
Getting started
yarn add react-native-detect-maestro
# or
npm install react-native-detect-maestro
# and then
npx pod-install
⚠️ Note: if you are using React Native0.72.x
you need to adduse_modular_headers!
in yourios/Podfile
.
Usage
import {DetectMaestro} from 'react-native-detect-maestro';
DetectMaestro.isMaestro() // true or false
Compatible table
- Android
0.70+
)
- Old Architecture (react-native 0.65+
)- iOS
0.70+
)
- Old Architecture (react-native 0.65+
)