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.

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

Detect shake event on Android and iOS

MIT
Latest version published 10 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages