react-native-dev-menu-on-touch
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

react-native-dev-menu-on-touch

npm

Open dev menu with 3 fingers touch instead of shake.

shake

when you want to reload the app

Why?

It's annoying to shake real device every time you need dev menu. Also - it looks quite awkward if you have co-workers sitting next to you and you shake your phone every 2 minutes.

How to use

Wrap entire app inside this component

import DevMenuOnTouch from 'react-native-dev-menu-on-touch';
// or:  import { DevMenuOnTouch } from 'react-native-dev-menu-on-touch'
 
class YourRootApp extends Component {
  render() {
    return (
      <DevMenuOnTouch>
        <YourApp />
      </DevMenuOnTouch>
    );
  }
}

or use with higher order component

import { withDevMenuOnTouch } from 'react-native-dev-menu-on-touch';
const YourAppRoot = withDevMenuOnTouch(YourApp);

Notes

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-dev-menu-on-touch

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

9.53 kB

Total Files

8

Last publish

Collaborators

  • pie6k