Skip to content

Commit

Permalink
Merge pull request #9312 from Tushu17/status-bar-fix
Browse files Browse the repository at this point in the history
fix status bar color when modal/popover is open
  • Loading branch information
mountiny authored Jun 6, 2022
2 parents 1d57924 + e7c44da commit d0a9887
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class AttachmentModal extends PureComponent {
return (
<>
<Modal
statusBarTranslucent={false}
type={this.state.modalType}
onSubmit={this.submitAndClose}
onClose={() => this.setState({isModalOpen: false})}
Expand Down
1 change: 1 addition & 0 deletions src/components/Modal/BaseModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class BaseModal extends PureComponent {
hideModalContentWhileAnimating={this.props.hideModalContentWhileAnimating}
animationInTiming={this.props.animationInTiming}
animationOutTiming={this.props.animationOutTiming}
statusBarTranslucent={this.props.statusBarTranslucent}
>
<SafeAreaInsetsContext.Consumer>
{(insets) => {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Modal/modalPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const propTypes = {
/** Modal container styles */
containerStyle: stylePropTypes,

/** Whether the modal should go under the system statusbar */
statusBarTranslucent: PropTypes.bool,

...windowDimensionsPropTypes,
};

Expand All @@ -73,6 +76,7 @@ const defaultProps = {
animationOut: null,
popoverAnchorPosition: {},
containerStyle: {},
statusBarTranslucent: true,
};

export {propTypes, defaultProps};

0 comments on commit d0a9887

Please sign in to comment.