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
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.xyou need to adduse_modular_headers!in yourios/Podfile.
import {DetectMaestro} from 'react-native-detect-maestro';
DetectMaestro.isMaestro() // true or false- Android
- New Architecture (react-native
0.70+) - Old Architecture (react-native
0.65+)
- New Architecture (react-native
- iOS
- New Architecture (react-native
0.70+) - Old Architecture (react-native
0.65+)
- New Architecture (react-native
MIT