npm.io
0.1.1-0 • Published 5 years ago

react-native-swipeable-scrollview

Licence
MIT
Version
0.1.1-0
Deps
0
Size
29 kB
Vulns
0
Weekly
0
Stars
2

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

Contributing

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

License

MIT