Skip to content

Commit b7afeff

Browse files
committed
fix(proptypes): moved proptypes out to deps
1 parent 7b0c8ac commit b7afeff

File tree

4 files changed

+1574
-2
lines changed

4 files changed

+1574
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@
2929
"commitizen": {
3030
"path": "./node_modules/cz-conventional-changelog"
3131
}
32+
},
33+
"dependencies": {
34+
"prop-types": "^15.6.0"
3235
}
3336
}

src/FlatListItem.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import React from 'react'
22
import {
33
View,
44
} from 'react-native'
5+
import PropTypes from 'prop-types'
56

67

78
export default class FlatListItem extends React.PureComponent {
89
static propTypes = {
9-
viewComponent: React.PropTypes.element.isRequired
10+
viewComponent: PropTypes.element.isRequired
1011
};
1112

1213
constructor(props) {

src/OptimizedFlatList.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react'
22
import {
33
FlatList,
44
} from 'react-native'
5-
65
import FlatListItem from './FlatListItem'
76

87
export default class OptimizedFlatList extends React.PureComponent {

0 commit comments

Comments
 (0)