Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@edvnz/bottom-sheet
Advanced tools
A bottom sheet component for React Native that allows the user to swipe down to dismiss it.
A bottom sheet component for React Native that allows the user to swipe down to dismiss it.
To install the BottomSheet component, run the following command:
$ npm install @edvnz/bottom-sheet
# or
$ yarn add @edvnz/bottom-sheet
To use the BottomSheet
component, you need to import it and wrap the content you want to display in the bottom sheet with it. You also need to provide a dismiss
function to handle the dismissal of the bottom sheet.
import { BottomSheet } from '@edvnz/bottom-sheet';
const MyComponent = () => {
const dismiss = () => {
// Dismiss the bottom sheet
};
return (
<BottomSheet dismiss={dismiss}>
{/* Content of the bottom sheet */}
</BottomSheet>
);
};
Prop name | Type | Description |
---|---|---|
dismiss | required | a function that is called when the bottom sheet is dismissed. |
isEnable | optional | a boolean that specifies whether the bottom sheet is enabled or not. If false , the bottom sheet will not be dismissible. The default value is true . |
Here is an example of how to use the BottomSheet component:
import React from 'react';
import { View, Button } from 'react-native';
import { BottomSheet } from 'bottom-sheet';
const MyComponent = () => {
const [isVisible, setIsVisible] = React.useState(false);
const dismiss = () => setIsVisible(false);
return (
<View>
<Button
title="Show bottom sheet"
onPress={() => setIsVisible(true)}
/>
<BottomSheet dismiss={dismiss} isEnable={isVisible}>
<View>
{/* Content of the bottom sheet */}
</View>
</BottomSheet>
</View>
);
};
FAQs
A bottom sheet component for React Native that allows the user to swipe down to dismiss it.
The npm package @edvnz/bottom-sheet receives a total of 0 weekly downloads. As such, @edvnz/bottom-sheet popularity was classified as not popular.
We found that @edvnz/bottom-sheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.