You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ The `HeaderImageScrollView` handle also the following props. None is required :
60
60
|`minOverlayOpacity`|`number`|`0`| Opacity of a black overlay on the header before any scroll |[example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/3b9d2d0d7f71c6bf877e2d10cc65c9ab7e1b484d/src/Pages/TvShow.js#L96)|
61
61
|`maxOverlayOpacity`|`number`|`0.3`| Opacity of a black overlay on the header when in navbar mode |[example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/3b9d2d0d7f71c6bf877e2d10cc65c9ab7e1b484d/src/Pages/TvShow.js#L96)|
62
62
|`overlayColor`|`string`|`black`| Color of the overlay on the header |[example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/master/src/Pages/Colors.js#L16)|
63
+
|`useNativeDriver`|`boolean`|`false`| Use native driver for the animation for performance improvement. A few props are unsupported at the moment if `useNativeDriver=true` (`onScroll`, `ScrollComponent`, `renderTouchableFixedForeground`) | - |
@@ -186,6 +187,15 @@ class ImageHeaderScrollView extends Component<Props, State> {
186
187
return<View/>;
187
188
}
188
189
190
+
if(this.props.useNativeDriver){
191
+
if(__DEV__){
192
+
console.warn(
193
+
'useNativeDriver=true and renderTouchableFixedForeground is not supported at the moment due to the animation of height unsupported with the native driver'
0 commit comments