Permalink
Browse files

FIX: Call all android back key handlers before invoking default

Summary:
Fixes issue #9736
Closes #9757

Differential Revision: D4164796

Pulled By: hramos

fbshipit-source-id: c5d966a9bbaa91f9929ea20a775f96c15aa9f482
  • Loading branch information...
1 parent 98c620c commit b4283ed84450fe458c4922d67ed848ce320d089b @dltmd6262 dltmd6262 committed with Facebook Github Bot Nov 11, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 Libraries/Utilities/BackAndroid.android.js
@@ -41,6 +41,8 @@ RCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function() {
/**
* Detect hardware back button presses, and programmatically invoke the default back button
* functionality to exit the app if there are no listeners or if none of the listeners return true.
+ * The event subscriptions are called in reverse order (i.e. last registered subscription first),
+ * and if one subscription returns true then subscriptions registered earlier will not be called.
*
* Example:
*

0 comments on commit b4283ed

Please sign in to comment.