react-native-detect-maestro
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i react-native-detect-maestro

Weekly Downloads

477

Version

1.0.7

License

MIT

Unpacked Size

18.3 kB

Total Files

25

Last publish

Collaborators

  • retyui