
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-native-gesture-bottom-sheet
Advanced tools
A simple and easy to use bottom sheet component with drag gestures for React Native
Need a lightweight and easy-to-use bottom sheet component? Here it is!
A cross-platform Bottom Sheet component which supports gestures.
Open a Terminal in the project root and run:
yarn add react-native-gesture-bottom-sheet
import React, { useRef } from "react";
import { SafeAreaView, TouchableOpacity, Text, StyleSheet } from "react-native";
import BottomSheet from "react-native-gesture-bottom-sheet";
const Example = () => {
// Needed in order to use .show()
const bottomSheet = useRef();
return (
<SafeAreaView style={styles.container}>
<BottomSheet hasDraggableIcon ref={bottomSheet} height={600} />
<TouchableOpacity
style={styles.button}
onPress={() => bottomSheet.current.show()}
>
<Text style={styles.text}>Open modal</Text>
</TouchableOpacity>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
button: {
height: 50,
width: 150,
backgroundColor: "#140078",
justifyContent: "center",
alignItems: "center",
borderRadius: 20,
shadowColor: "#8559da",
shadowOpacity: 0.7,
shadowOffset: {
height: 4,
width: 4,
},
shadowRadius: 5,
elevation: 6,
},
text: {
color: "white",
fontWeight: "600",
},
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
},
});
export default Example;
name | required | default | Type | description |
---|---|---|---|---|
height | Yes | integer | Determines the panel size. | |
radius | No | 10 | integer | Determines the radius of the top borders. |
hasDraggableIcon | No | false | boolean | Controls visibility of the draggable icon on top of the modal. |
draggable | No | true | boolean | Specify whether the panel is draggable or not. |
backgroundColor | No | #25252599 | string | Change the color of the overlay. |
sheetBackgroundColor | No | #F3F3F3 | string | Change the background of the panel. |
FAQs
A simple and easy to use bottom sheet component with drag gestures for React Native
The npm package react-native-gesture-bottom-sheet receives a total of 340 weekly downloads. As such, react-native-gesture-bottom-sheet popularity was classified as not popular.
We found that react-native-gesture-bottom-sheet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.