Skip to content

Commit

Permalink
fix(types): allow the style to be array (leecade#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayZoneYour authored Jul 10, 2019
1 parent 988e2c0 commit 9b527b2
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 651 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"updtr": "^2.0.0"
},
"dependencies": {
"@react-native-community/viewpager": "^1.1.7",
"prop-types": "^15.5.10"
},
"config": {
Expand Down
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export default class extends Component {
horizontal: PropTypes.bool,
children: PropTypes.node.isRequired,
containerStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
style: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
style: PropTypes.oneOfType([
PropTypes.object,
PropTypes.number,
PropTypes.array
]),
scrollViewStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
pagingEnabled: PropTypes.bool,
showsHorizontalScrollIndicator: PropTypes.bool,
Expand Down
Loading

0 comments on commit 9b527b2

Please sign in to comment.