0.2.2 • Published 5 years ago

react-native-swipeup-scrollview v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

React Native SwipeUp ScrollView

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

Demo

Inspiration

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

Props

PropDefaultTypeDescription
stops100, 400, Dimensions.Height-100arrayThe snap points at which the modal will come to rest. Recommend at most three, two works as well.
topCornerRadius20numberThe corner radius applied to the top left and top right corners of the wrapper.
showTopButtontruebooleanControls whether to show the tiny button up top.
topButtonStylenullobjectCustomize the style of the top button. Currently it is a low opacity 'black' with a pill shape.
wrapperStylenullobjectCustomize 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.