author: Jadson Lourenco email@example.com
Notes: Source can not be used directly, republish it...
Add the shake event on your React Native app, giving to users improved usability. Enjoy! (works only on real device)
$ npm install @chenng/react-native-shake-event --save
react-native link @chenng/react-native-shake-event
Start listening the shake event and handle a callback function.
Stop to listening the shake event, and is recommended to prevent memory leak.
On debug mode this event also handle the DevMenu, but works fine on production.