How to use the react-native-shake.removeEventListener function in react-native-shake

To help you get started, we’ve selected a few react-native-shake examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github textileio / notes / src / Containers / Home.tsx View on Github external
componentWillUnmount() {
    RNShake.removeEventListener('ShakeEvent')
  }
github LiskHQ / lisk-mobile / src / components / shared / transactions / index.js View on Github external
componentWillUnmount() {//eslint-disable-line
    RNShake.removeEventListener('ShakeEvent');
  }
github MetaMask / metamask-mobile / app / core / Feedback.js View on Github external
stopListening() {
		RNShake.removeEventListener('ShakeEvent');
	}
}

react-native-shake

React Native shake event detector

MIT
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis