Skip to content

Commit 9b527b2

Browse files
fix(types): allow the style to be array (#1013)
fix #543
1 parent 988e2c0 commit 9b527b2

File tree

3 files changed

+176
-651
lines changed

3 files changed

+176
-651
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"updtr": "^2.0.0"
6161
},
6262
"dependencies": {
63-
"@react-native-community/viewpager": "^1.1.7",
6463
"prop-types": "^15.5.10"
6564
},
6665
"config": {

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ export default class extends Component {
105105
horizontal: PropTypes.bool,
106106
children: PropTypes.node.isRequired,
107107
containerStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
108-
style: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
108+
style: PropTypes.oneOfType([
109+
PropTypes.object,
110+
PropTypes.number,
111+
PropTypes.array
112+
]),
109113
scrollViewStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number]),
110114
pagingEnabled: PropTypes.bool,
111115
showsHorizontalScrollIndicator: PropTypes.bool,

0 commit comments

Comments
 (0)