Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
react-native-sheets-bottom
Advanced tools
react-native-swipeable-panel ise swipeable, easy to use bottom panel for your React Native projects. You can extend panel by swiping up, make it small or close by swiping down with pan gestures. Feel free to redesign inside of the panel.
$ npm i react-native-swipeable-panel
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import SwipeablePanel from "react-native-swipeable-panel";
export default class App extends Component {
constructor(props) {
super(props);
this.state = {
swipeablePanelActive: false
};
}
componentDidMount = () => {
this.openPanel();
};
openPanel = () => {
this.setState({ swipeablePanelActive: true });
};
closePanel = () => {
this.setState({ swipeablePanelActive: false });
};
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>Welcome to React Native!</Text>
<Text style={styles.instructions}>To get started, edit App.js</Text>
<SwipeablePanel
fullWidth
isActive={this.state.swipeablePanelActive}
onClose={this.closePanel}
onPressCloseButton={this.closePanel}
>
<PanelContent /> {/* Your Content Here */}
</SwipeablePanel>
</View>
);
}
}
Properties | Type | Description | Default |
---|---|---|---|
barStyle | Object | Use this prop to override bar style | {} |
closeIconStyle | Object | Use this prop to override close button icon style | {} |
closeOnTouchOutside | bool | Set true if you want to close panel by touching outside | false |
closeOnTouchOutside | bool | Set true if you want to close panel by touching outside | false |
closeRootStyle | Object | Use this prop to override close button background style | {} |
fullWidth | bool | Set true if you want to make full with panel | false |
gestureThreshold | Number | Top bar pan gesture threshold | 100 |
isActive | bool | Show/Hide the panel | false |
noBackgroundOpacity | bool | Set true if you want to disable black background opacity | false |
noBar | bool | Set true if you want to remove gray bar | false |
onClose | Function | Fired when the panel is closed | |
onlyLarge | bool | Set true if you want to let panel open just large mode | false |
openLarge | bool | Set true if you want to open panel large by default | false |
showCloseButton | bool | Set true if you want to show close button | |
style | Object | Use this prop to override panel style | {} |
gestureThreshold
new propTravis CI
and semantic-release
so we automatically release new version up on code merge into masterPrettier
and Eslint
so new contributors have a better dev experiencecd examples
npm start
cd ios && pod install && cd ..
react-native run-ios
or react-native run-android
This is a fork from: https://github.com/enesozturk/rn-swipeable-panel - all credits to original package creator https://github.com/enesozturk
FAQs
Kind of Sheets Bottom for react native
The npm package react-native-sheets-bottom receives a total of 417 weekly downloads. As such, react-native-sheets-bottom popularity was classified as not popular.
We found that react-native-sheets-bottom 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.