We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a6a1f commit dbc3357Copy full SHA for dbc3357
src/index.js
@@ -102,8 +102,14 @@ export default class extends Component {
102
static propTypes = {
103
horizontal: PropTypes.bool,
104
children: PropTypes.node.isRequired,
105
- containerStyle: PropTypes.any,
106
- style: PropTypes.any,
+ containerStyle: PropTypes.oneOfType([
+ PropTypes.object,
107
+ PropTypes.number,
108
+ ]),
109
+ style: PropTypes.oneOfType([
110
111
112
113
pagingEnabled: PropTypes.bool,
114
showsHorizontalScrollIndicator: PropTypes.bool,
115
showsVerticalScrollIndicator: PropTypes.bool,
0 commit comments