@@ -288,6 +288,9 @@ class VirtualKeyboard extends Component {
288288 }
289289}
290290
291+ 292+ const stylePropType = PropTypes . oneOfType ( [ PropTypes . number , PropTypes . object , PropTypes . array , PropTypes . bool ] ) ;
293+ 291294VirtualKeyboard . propTypes = {
292295 onRef : PropTypes . any . isRequired ,
293296 onKeyDown : PropTypes . func ,
@@ -299,13 +302,13 @@ VirtualKeyboard.propTypes = {
299302 keyboardMessageDisplayTime : PropTypes . number ,
300303 vibration : PropTypes . bool ,
301304 // Style props
302- keyboardStyle : PropTypes . object ,
303- keyboardDisabledStyle : PropTypes . object ,
304- keyStyle : PropTypes . object ,
305- keyTextStyle : PropTypes . object ,
306- keyImageStyle : PropTypes . object ,
307- messageStyle : PropTypes . object ,
308- messageTextStyle : PropTypes . object
305+ keyboardStyle : stylePropType ,
306+ keyboardDisabledStyle : stylePropType ,
307+ keyStyle : stylePropType ,
308+ keyTextStyle : stylePropType ,
309+ keyImageStyle : stylePropType ,
310+ messageStyle : stylePropType ,
311+ messageTextStyle : stylePropType
309312} ;
310313
311314VirtualKeyboard . defaultProps = {
0 commit comments