react-native-swipeable-scrollview
v0.1.1-0
Published
Simpler bottom sheet using scrollviews
Downloads
8
Readme
react-native-swipeable-scrollview
Simpler bottom sheet using scrollviews
Why?
This is an extracted piece of code from most of my simple bottom sheet implementations where heavy libraries for a simple scroll set animation isn't required. This library doesn't use gesture-handler or reanimated and is based of the native api's from react-native instead. If you do need something extensive, consider using the below alternative(s):
- https://jeremybarbet.github.io/react-native-modalize/#/
Installation
npm install react-native-swipeable-scrollview
Usage
import SwipeableScrollview from "react-native-swipeable-scrollview";
// ...
return ()
<SwipeableScrollview
breakpoints={['40%', '92%']}
containerStyles={styles.bottomSheet} >
<View>
<Text>hello world</Text>
</View>
</SwipeableScrollview>
Demo
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT