diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java index ac52e282d..17d583c19 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java @@ -11,6 +11,8 @@ package com.facebook.react.views.modal; import javax.annotation.Nullable; +import java.util.ArrayList; + import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; @@ -99,6 +101,12 @@ public class ReactModalHostView extends ViewGroup { mHostView.removeView(child); } + @Override + public void addChildrenForAccessibility(ArrayList outChildren) { + // Explicitly override this to prevent accessibility events being passed down to children + // Those will be handled by the mHostView which lives in the dialog + } + public void dismiss() { if (mDialog != null) { mDialog.dismiss();