react-native-detect-maestro
v1.0.7
Published
Detect Maestro in your React Native App
Downloads
2,001
Maintainers
Readme
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 Native
0.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
- 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
License
MIT