11'use strict' ;
22
33var React = require ( 'react' ) ;
4+ var PropTypes = require ( 'prop-types' ) ;
45var {
56 View,
67 StyleSheet,
@@ -44,28 +45,28 @@ var styles = StyleSheet.create({
4445var ModalBox = React . createClass ( {
4546
4647 propTypes : {
47- isOpen : React . PropTypes . bool ,
48- isDisabled : React . PropTypes . bool ,
49- startOpen : React . PropTypes . bool ,
50- backdropPressToClose : React . PropTypes . bool ,
51- swipeToClose : React . PropTypes . bool ,
52- swipeThreshold : React . PropTypes . number ,
53- swipeArea : React . PropTypes . number ,
54- position : React . PropTypes . string ,
55- entry : React . PropTypes . string ,
56- backdrop : React . PropTypes . bool ,
57- backdropOpacity : React . PropTypes . number ,
58- backdropColor : React . PropTypes . string ,
59- backdropContent : React . PropTypes . element ,
60- animationDuration : React . PropTypes . number ,
61- backButtonClose : React . PropTypes . bool ,
62- easing : React . PropTypes . func ,
63- coverScreen : React . PropTypes . bool ,
64- keyboardTopOffset : React . PropTypes . number ,
65-
66- onClosed : React . PropTypes . func ,
67- onOpened : React . PropTypes . func ,
68- onClosingState : React . PropTypes . func ,
48+ isOpen : PropTypes . bool ,
49+ isDisabled : PropTypes . bool ,
50+ startOpen : PropTypes . bool ,
51+ backdropPressToClose : PropTypes . bool ,
52+ swipeToClose : PropTypes . bool ,
53+ swipeThreshold : PropTypes . number ,
54+ swipeArea : PropTypes . number ,
55+ position : PropTypes . string ,
56+ entry : PropTypes . string ,
57+ backdrop : PropTypes . bool ,
58+ backdropOpacity : PropTypes . number ,
59+ backdropColor : PropTypes . string ,
60+ backdropContent : PropTypes . element ,
61+ animationDuration : PropTypes . number ,
62+ backButtonClose : PropTypes . bool ,
63+ easing : PropTypes . func ,
64+ coverScreen : PropTypes . bool ,
65+ keyboardTopOffset : PropTypes . number ,
66+
67+ onClosed : PropTypes . func ,
68+ onOpened : PropTypes . func ,
69+ onClosingState : PropTypes . func ,
6970 } ,
7071
7172 getDefaultProps : function ( ) {
@@ -437,15 +438,15 @@ var ModalBox = React.createClass({
437438
438439 var content = (
439440 < View style = { [ styles . transparent , styles . absolute ] } pointerEvents = { 'box-none' } >
440- < View style = { { flex : 1 } } onLayout = { this . onContainerLayout } >
441+ < View style = { { flex : 1 } } pointerEvents = { 'box-none' } onLayout = { this . onContainerLayout } >
441442 { visible && this . renderBackdrop ( ) }
442443 { visible && this . renderContent ( ) }
443444 </ View >
444445 </ View >
445446 )
446447
447448 if ( ! this . props . coverScreen ) return content ;
448-
449+
449450 return (
450451 < Modal onRequestClose = { ( ) => this . close ( ) } supportedOrientations = { [ 'landscape' , 'portrait' ] } transparent visible = { visible } >
451452 { content }
@@ -479,4 +480,4 @@ var ModalBox = React.createClass({
479480
480481} ) ;
481482
482- module . exports = ModalBox ;
483+ module . exports = ModalBox ;
0 commit comments