0.1.1-0 • Published 3 years ago

react-native-swipeable-scrollview v0.1.1-0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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):

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

npm.io

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT