Skip to content

alex-rentlyz/react-native-devmenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-devmenu

npm

It's iOS only so far :(

Open developer menu using touches instead of shaking your device.

Installation

Install the library from npm:

npm i --save @terrysahaidak/react-native-devmenu

or

yarn add @terrysahaidak/react-native-devmenu

Usage

Wrap your root any any other component you want to recognize you touches to open the dev menu. Pass numberOfTouches prop to change number of taps (by default it's 3).

It renders children without any wrapper on android and/or production.

import DevMenu from '@terrysahaidak/react-native-devmenu';

const Root = () => (
  <DevMenuOnTouch numberOfTouches={4}>
    {/* your app stuff such as providers, navigators etc */}
  </DevMenuOnTouch>
);

License

MIT © Terry Sahaidak 2019

About

Open dev menu with 3 fingers touch in react native instead of shake gesture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%