Skip to content

Commit

Permalink
fix(PropTypes): Get proptypes from 'prop-types'
Browse files Browse the repository at this point in the history
* Updated prop-types

* Updated package.json with version property

* Update package.json
  • Loading branch information
kmorales13 authored and st0ffern committed Nov 23, 2017
1 parent 413545e commit 64d9a09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {Component} from 'react'

import PropTypes from 'prop-types'
import {
View,
Dimensions,
Expand Down Expand Up @@ -70,7 +70,7 @@ class InView extends Component{
<View ref="myview" {...this.props} onLayout={event => this.onLayout(event)}>
{this.props.children}
</View>
)
)
}
}

Expand All @@ -79,9 +79,9 @@ InView.defaultProps = {
delay: 100,
}
InView.propTypes = {
onChange: React.PropTypes.func.isRequired,
active: React.PropTypes.bool,
delay: React.PropTypes.number
onChange: PropTypes.func.isRequired,
active: PropTypes.bool,
delay: PropTypes.number
}

module.exports = InView
module.exports = InView
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"url": "https://github.com/stoffern/react-native-inview/issues"
},
"homepage": "https://github.com/stoffern/react-native-inview#readme",
"dependencies": {
"prop-types": "^15.6.0"
},
"devDependencies": {
"cz-conventional-changelog": "^2.0.0",
"semantic-release": "^8.0.3"
Expand Down

0 comments on commit 64d9a09

Please sign in to comment.