
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@nghinv/react-native-action-sheet
Advanced tools
A custom alert component with react-native-reanimated
yarn add @nghinv/react-native-action-sheet
npm install @nghinv/react-native-action-sheet
yarn add react-native-gesture-handler react-native-reanimated react-native-safe-area-context @nghinv/react-native-icons
ActionSheetService
in the Root Component
import { ActionSheetService } from '@nghinv/react-native-action-sheet';
...
return (
<ActionSheetService>
<RootComponent />
</ActionSheetService>
);
...
ActionSheet.show()
and ActionSheet.hide()
import React from 'react';
import { View, StyleSheet, Button } from 'react-native';
import { ActionSheet } from '@nghinv/react-native-action-sheet';
export default function Example() {
const onPress = () => {
ActionSheet.show({
title: 'React Native Debug Menu',
message: 'Running JSI (<JSCRuntime@0x6000003a3ad50>)',
bottomTitle: 'Cancel',
zIndex: 10,
options: [
{
title: 'Hello',
autoDismiss: false,
onPress: () => {},
},
{
title: 'Good morning',
leftIconName: 'photo',
checked: true,
renderRight: () => (
<View
style={{
width: 40, height: 40, backgroundColor: 'red'
}}
/>
),
},
{ title: 'Good afternoon', checked: true },
],
});
};
return (
<View style={styles.container}>
<Button title='Show action sheet' onPress={onPress} />
</View>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'skyblue'
}
});
FAQs
A custom action sheet component
The npm package @nghinv/react-native-action-sheet receives a total of 11 weekly downloads. As such, @nghinv/react-native-action-sheet popularity was classified as not popular.
We found that @nghinv/react-native-action-sheet 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.