Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@chenng/react-native-shake-event
Advanced tools
author: Jadson Lourenco jadsonlourenco@gmail.com
homepage: https://github.com/jadsonlourenco/react-native-shake-event
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
import RNShakeEvent from 'react-native-shake-event';
class MyComponent extends React.Component {
componentWillMount() {
RNShakeEvent.addEventListener('shake', () => {
console.log('Device shake!');
});
}
componentWillUnmount() {
RNShakeEvent.removeEventListener('shake');
}
}
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.
MIT
FAQs
Add shake event to your React Native app
The npm package @chenng/react-native-shake-event receives a total of 3 weekly downloads. As such, @chenng/react-native-shake-event popularity was classified as not popular.
We found that @chenng/react-native-shake-event demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.