diff --git a/src/index.js b/src/index.js index 30d0596..b587594 100644 --- a/src/index.js +++ b/src/index.js @@ -1,10 +1,9 @@ import React, { Component } from 'react' import { Animated, Dimensions, View } from 'react-native' -import { ViewPropTypes } from 'deprecated-react-native-prop-types' 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') @@ -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 {