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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.755latest
1.0.0-alpha.11next

Version History

VersionDownloads (Last 7 Days)Published
1.0.755
1.0.61
1.0.521
1.0.4354
1.0.37
1.0.210
1.0.128
1.0.0-alpha.11

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