react-native-parallax-scroll-view
Advanced tools
Comparing version 0.16.16 to 0.16.17
@@ -125,5 +125,5 @@ const React = require('react-native'); | ||
if (e.nativeEvent.contentOffset.y >= midpoint) { | ||
onChangeHeaderVisibility({ visible: false, nativeEvent: e.nativeEvent }); | ||
onChangeHeaderVisibility(false); | ||
} else { | ||
onChangeHeaderVisibility({ visible: true, nativeEvent: e.nativeEvent }); | ||
onChangeHeaderVisibility(true); | ||
} | ||
@@ -130,0 +130,0 @@ |
{ | ||
"name": "react-native-parallax-scroll-view", | ||
"version": "0.16.16", | ||
"version": "0.16.17", | ||
"description": "A ScrollView-like component with parallax and sticky header support", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -72,2 +72,2 @@ # react-native-parallax-scroll-view | ||
| `renderScrollComponent` | `func` | No | A function with input `props` and outputs a `ScrollView`-like component in which the content is rendered. This is useful if you want to provide your own scrollable component. (See: [https://github.com/exponentjs/react-native-scrollable-mixin](https://github.com/exponentjs/react-native-scrollable-mixin)) (By default, returns a `ScrollView` with the given props) | | ||
| `onChangeHeaderVisibility` | `func` | No | A callback function that is invoked when the parallax header is hidden or shown (as the user is scrolling). Function is called with an object of shape `{ visible: bool, nativeEvent: object }`, where `nativeEvent` is the scroll event. | | ||
| `onChangeHeaderVisibility` | `func` | No | A callback function that is invoked when the parallax header is hidden or shown (as the user is scrolling). Function is called with a `boolean` value to indicate whether header is visible or not. | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1992600