From a440233938ee9944a0ffda86632c2904820bf447 Mon Sep 17 00:00:00 2001 From: Hardik Dhanani Date: Thu, 2 May 2024 09:07:03 +0530 Subject: [PATCH 1/2] Update index.js --- src/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 30d0596..f7d24cb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,5 @@ import React, { Component } from 'react' import { Animated, Dimensions, View } from 'react-native' -import { ViewPropTypes } from 'deprecated-react-native-prop-types' const styles = require('./styles') @@ -41,12 +40,12 @@ const IPropTypes = { renderScrollComponent: func, renderStickyHeader: func, stickyHeaderHeight: number, - contentContainerStyle: ViewPropTypes.style, + contentContainerStyle: object, outputScaleValue: number, - parallaxHeaderContainerStyle: ViewPropTypes.style, - parallaxHeaderStyle: ViewPropTypes.style, - backgroundImageStyle: ViewPropTypes.style, - stickyHeaderStyle: ViewPropTypes.style + parallaxHeaderContainerStyle: object, + parallaxHeaderStyle: object, + backgroundImageStyle: object, + stickyHeaderStyle: object } class ParallaxScrollView extends Component { From 586333dc511c24d715406551873713d5f0dfbde2 Mon Sep 17 00:00:00 2001 From: Hardik Dhanani Date: Thu, 2 May 2024 09:10:51 +0530 Subject: [PATCH 2/2] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f7d24cb..b587594 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ import { Animated, Dimensions, View } from 'react-native' const styles = require('./styles') -import { bool, func, number, string } from 'prop-types' +import { bool, func, number, string, object } from 'prop-types' const window = Dimensions.get('window')