Skip to content

Commit f737c56

Browse files
authored
Merge pull request #86 from TotalWineLabs/master
Fix prop type reference
2 parents a5b11cf + 5db0df1 commit f737c56

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
"android"
2727
],
2828
"author": "Jack Hsu",
29-
"license": "ISC"
29+
"license": "ISC",
30+
"dependencies": {
31+
"prop-types": "^15.6.0"
32+
}
3033
}

src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { Component } from 'react'
2-
import { Animated, Dimensions, ScrollView, View } from 'react-native'
2+
import { Animated, Dimensions, ScrollView, View, ViewPropTypes } from 'react-native'
33

44
const styles = require('./styles')
55

6-
const { bool, func, number, string } = React.PropTypes
6+
import { bool, func, number, string } from 'prop-types'
77

88
const window = Dimensions.get('window')
99

@@ -37,7 +37,7 @@ const IPropTypes = {
3737
renderScrollComponent: func,
3838
renderStickyHeader: func,
3939
stickyHeaderHeight: number,
40-
contentContainerStyle: View.propTypes.style,
40+
contentContainerStyle: ViewPropTypes.style,
4141
outputScaleValue: number
4242
}
4343

0 commit comments

Comments
 (0)