Skip to content

Commit

Permalink
Fixing propTypes to works with RN 0.58 due to facebook/react-native#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasjunior committed Jan 28, 2019
1 parent 8e7b3ab commit f5ab53c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Dialog extends Component {
render() {
const {
dialogStyle, visible, animationType, onRequestClose, onShow,
onOrientationChange, onTouchOutside, overlayStyle, supportedOrientations
onOrientationChange, onTouchOutside, overlayStyle, supportedOrientations,
} = this.props;

const dialogBackgroundColor = OS === 'ios' ? "#e8e8e8" : "#ffffff";
Expand Down Expand Up @@ -165,12 +165,9 @@ Dialog.propTypes = {
overlayStyle: ViewPropTypes.style,
buttons: PropTypes.element,
visible: PropTypes.bool,
animationType: Modal.propTypes.animationType,
onRequestClose: PropTypes.func,
onShow: PropTypes.func,
onOrientationChange: Modal.propTypes.onOrientationChange,
onTouchOutside: PropTypes.func,
supportedOrientations: Modal.propTypes.supportedOrientations,
title: PropTypes.string,
titleStyle: Text.propTypes.style
}
Expand All @@ -180,4 +177,4 @@ Dialog.defaultProps = {
onRequestClose: () => null
};

export default Dialog;
export default Dialog;

0 comments on commit f5ab53c

Please sign in to comment.