Skip to content

Commit

Permalink
Added props supportedOrientations.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasjunior committed Sep 5, 2017
1 parent 898a0d8 commit 663357b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Dialog extends Component {
render() {
const {
dialogStyle, visible, animationType, onRequestClose, onShow,
onOrientationChange, onTouchOutside, overlayStyle
onOrientationChange, onTouchOutside, overlayStyle, supportedOrientations
} = this.props;

const dialogBackgroundColor = OS === 'ios' ? "#e8e8e8" : "#ffffff";
Expand All @@ -118,6 +118,7 @@ class Dialog extends Component {
onRequestClose={onRequestClose}
onShow={onShow}
onOrientationChange={onOrientationChange}
supportedOrientations={supportedOrientations}
>
{this._renderTouchable(onTouchOutside,
<View style={[{
Expand Down Expand Up @@ -166,6 +167,7 @@ Dialog.propTypes = {
onShow: PropTypes.func,
onOrientationChange: Modal.propTypes.onOrientationChange,
onTouchOutside: PropTypes.func,
supportedOrientations: Modal.propTypes.supportedOrientations,
title: PropTypes.string,
titleStyle: Text.propTypes.style
}
Expand All @@ -175,4 +177,4 @@ Dialog.defaultProps = {
onRequestClose: () => null
};

export default Dialog
export default Dialog;

0 comments on commit 663357b

Please sign in to comment.