# react-native-devmenu-trigger

> React Native dev menu helper library.

Latest version **1.1.0** (published 2019-01-15) · 0 weekly downloads

## Install

```sh
npm install react-native-devmenu-trigger
pnpm add react-native-devmenu-trigger
yarn add react-native-devmenu-trigger
bun add react-native-devmenu-trigger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-01-15 |
| First published | 2018-12-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Łukasz Chludziński |
| Maintainers | lukaszchopin |
| Keywords | react-native, react native, android dev menu, ios dev menu, dev menu |

## Links

- npm: https://www.npmjs.com/package/react-native-devmenu-trigger
- Repository: https://github.com/lukaszchopin/react-native-devmenu-trigger
- Issues: https://github.com/lukaszchopin/react-native-devmenu-trigger/issues
- npm.io page: https://npm.io/package/react-native-devmenu-trigger

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-01-15
- 1.0.2 — 2018-12-18
- 1.0.1 — 2018-12-17
- 1.0.0 — 2018-12-17

## README

# react-native-devmenu-trigger

[![npm version](https://badge.fury.io/js/react-native-devmenu-trigger.svg)](https://badge.fury.io/js/react-native-devmenu-trigger)

Lightweight React Native helper library. It allows to trigger dev menu by tapping on the screen with 3 fingers.

## Getting started

`$ yarn add react-native-devmenu-trigger`

or

`$ npm install react-native-devmenu-trigger --save`

### Mostly automatic installation

`$ react-native link react-native-devmenu-trigger`

### Manual installation

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`

- Add `import com.reactlibrary.RNDevmenuTriggerPackage;` to the imports at the top of the file
- Add `new RNDevmenuTriggerPackage()` to the list returned by the `getPackages()` method

2. Append the following lines to `android/settings.gradle`:
   ```
   include ':react-native-devmenu-trigger'
   project(':react-native-devmenu-trigger').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-devmenu-trigger/android')
   ```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
   ```
     implementation project(':react-native-devmenu-trigger')
   ```

#### iOS

iOS does not require additional config

## Usage

```javascript
import { withDevMenuTrigger } from 'react-native-devmenu-trigger';

// decorate your main react native component

@withDevMenuTrigger
export default class App extends Component {
  render() {
    return (
      <View style={{ flex: 1 }}>
       // other components
      </View>
    );
  }
}

// or use as function

class App extends Component {
  render() {
    return (
      <View style={{ flex: 1 }}>
       // other components
      </View>
    );
  }
}

export default withDevMenuTrigger(App);
```

---
_Source: https://npm.io/package/react-native-devmenu-trigger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
