Skip to content

Commit 9d22821

Browse files
author
Vijay Sapkota
authored
Merge pull request #498 from vhoen/master
preventing apps using previous version to crash
2 parents 1e3e1b2 + dbc3357 commit 9d22821

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: ViewPropTypes.style,
106-
style: ViewPropTypes.style,
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)