react-native-detect-maestro

Detect Maestro in your React Native App

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-native-detect-maestro
1.0.76 months ago10 months agoMinified + gzip package size for react-native-detect-maestro in KB

Readme

react-native-detect-maestro
react-native-detect-maestro on npm react-native-detect-maestro downloads react-native-detect-maestro install size CI E2E
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 add use_modular_headers! in your ios/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+)
  • iOS
- New Architecture (react-native 0.70+) - Old Architecture (react-native 0.65+)

License

MIT