It's iOS only so far :(
Open developer menu using touches instead of shaking your device.
Install the library from npm:
npm i --save @terrysahaidak/react-native-devmenu
or
yarn add @terrysahaidak/react-native-devmenu
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>
);
MIT © Terry Sahaidak 2019