Skip to content

Commit dbc3357

Browse files
authored
adding more specific proptype
1 parent f6a6a1f commit dbc3357

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,14 @@ export default class extends Component {
102102
static propTypes = {
103103
horizontal: PropTypes.bool,
104104
children: PropTypes.node.isRequired,
105-
containerStyle: PropTypes.any,
106-
style: PropTypes.any,
105+
containerStyle: PropTypes.oneOfType([
106+
PropTypes.object,
107+
PropTypes.number,
108+
]),
109+
style: PropTypes.oneOfType([
110+
PropTypes.object,
111+
PropTypes.number,
112+
]),
107113
pagingEnabled: PropTypes.bool,
108114
showsHorizontalScrollIndicator: PropTypes.bool,
109115
showsVerticalScrollIndicator: PropTypes.bool,

0 commit comments

Comments
 (0)