Skip to content

Feat/add IgnoreBackgroundPress prop #1267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

lidord-wix
Copy link
Contributor

Description

Add IgnoreBackgroundPress prop to Dialog component to support not dismissing the dialog on background press
Add example in DialogScreen
relevant issue - #1262

Changelog

Add IgnoreBackgroundPress prop to Dialog component

@lidord-wix lidord-wix requested a review from ethanshar April 19, 2021 11:30
@ethanshar ethanshar requested review from M-i-k-e-l and removed request for ethanshar April 20, 2021 11:43
@ethanshar ethanshar assigned M-i-k-e-l and unassigned ethanshar Apr 20, 2021
@@ -283,7 +288,7 @@ class Dialog extends Component<DialogProps, DialogState> {
transparent
visible={modalVisibility}
animationType={'none'}
onBackgroundPress={this.hideDialogView}
onBackgroundPress={onBackgroundPress}
onRequestClose={this.hideDialogView}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this should be affected as well (onRequestClose is the back button in Android)

@M-i-k-e-l M-i-k-e-l enabled auto-merge (squash) April 21, 2021 14:13
@M-i-k-e-l M-i-k-e-l merged commit b41c92f into master Apr 21, 2021
@lidord-wix lidord-wix deleted the feat/ignoreBackgroundPress_in_dialog branch May 31, 2021 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants