react-native-swipeable-scrollview
TypeScript icon, indicating that this package has built-in type declarations

0.1.1-0 • Public • Published

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

Package Sidebar

Install

npm i react-native-swipeable-scrollview

Weekly Downloads

0

Version

0.1.1-0

License

MIT

Unpacked Size

30.1 kB

Total Files

9

Last publish

Collaborators

  • barelyreaper