Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prop for alerting the user before exiting app#167

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
nmquebb wants to merge1 commit intoreact-native-simple-router-community:master
base:master
Choose a base branch
Loading
fromnmquebb:master

Conversation

@nmquebb
Copy link

I've been getting some complaints from user's about the app just exiting. I'm not an Android user so I don't know if that's expected behavior or not, but I thought it would be nice to add an option alert before leaving the app.

@mention-bot
Copy link

@nmquebb, thanks for your PR! By analyzing the history of the files in this pull request, we identified@SEthX,@charpeni and@AnNOtis to be potential reviewers.

@nmquebb
Copy link
Author

?

@charpeni
Copy link
Contributor

Thank you@nmquebb, I'll review this soon.

@charpenicharpeni self-requested a reviewFebruary 16, 2017 00:46
Copy link
Contributor

@charpenicharpeni left a comment
edited
Loading

Choose a reason for hiding this comment

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

Thank you for your contribution and sorry for the delay.

The back button will only exit the current application if it's the last route in the stack, it's the expected behaviour.

However, it could be nice to have this, but I would highly prefer a callback or something more customizable than a hardcoded alert that can't be translated.

currentRoute:PropTypes.object.isRequired,
customAction:PropTypes.func,
handleBackAndroid:PropTypes.bool,
alertAndroidExit:PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: alphabetical order

this.goBack();
returntrue;
}else{
console.log('dsa')
Copy link
Contributor

Choose a reason for hiding this comment

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

Theseconsole.log should not be commited.

customAction:PropTypes.func,
firstRoute:PropTypes.object.isRequired,
handleBackAndroid:PropTypes.bool,
alertAndroidExit:PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: alphabetical order

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@charpenicharpenicharpeni requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nmquebb@mention-bot@charpeni

[8]ページ先頭

©2009-2025 Movatter.jp