react-native-swipeup-scrollview

0.2.2 • Public • Published

React Native SwipeUp ScrollView

A very cool scrollview that reproduces the iOS Stocks App popup view.

Demo

Inspiration

iOS Stocks App

It can also be seen in Apple Maps and other stock iOS apps.

Props

Prop Default Type Description
stops [100, 400, Dimensions.Height-100] array The snap points at which the modal will come to rest. Recommend at most three, two works as well.
topCornerRadius 20 number The corner radius applied to the top left and top right corners of the wrapper.
showTopButton true boolean Controls whether to show the tiny button up top.
topButtonStyle null object Customize the style of the top button. Currently it is a low opacity 'black' with a pill shape.
wrapperStyle null object Customize the style of the animated view (wrapper) that contains the actual scrollview.

Scroll View

As of version 0.2.0, the style prop will be passed on to the main scrollview as well.

The main view is a React Native scrollview, so you can customize it using any scrollview props.

Package Sidebar

Install

npm i react-native-swipeup-scrollview

Weekly Downloads

12

Version

0.2.2

License

MIT

Unpacked Size

7.84 kB

Total Files

4

Last publish

Collaborators

  • mitesh-mokko