Skip to content

Commit b4283ed

Browse files
Kevin HanFacebook Github Bot
Kevin Han
authored and
Facebook Github Bot
committed
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
1 parent 98c620c commit b4283ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/Utilities/BackAndroid.android.js

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ RCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function() {
4141
/**
4242
* Detect hardware back button presses, and programmatically invoke the default back button
4343
* functionality to exit the app if there are no listeners or if none of the listeners return true.
44+
* The event subscriptions are called in reverse order (i.e. last registered subscription first),
45+
* and if one subscription returns true then subscriptions registered earlier will not be called.
4446
*
4547
* Example:
4648
*

0 commit comments

Comments
 (0)