Add viewIsDescendantOf for UIManager on Android

Summary:
Add the ability for UIManager to check if a node is an ancestor of anther one on Android like #7876 did on iOS
Closes https://github.com/facebook/react-native/pull/13129

Differential Revision: D4938319

Pulled By: hramos

fbshipit-source-id: abe20779be2142a1ea9ac46f52d8cd8609236419
This commit is contained in:
Swordsman-Inaction authored and Facebook Github Bot committed 2017-05-23 11:04:27 -07:00
1 parent 2d1c721fd6
commit 663df57c62
3 files changed
+44

No files matched your search

@@ -412,6 +412,17 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
callback);
}
/**
* Check if the first shadow node is the descendant of the second shadow node
*/
@ReactMethod
public void viewIsDescendantOf(
final int reactTag,
final int ancestorReactTag,
final Callback callback) {
mUIImplementation.viewIsDescendantOf(reactTag, ancestorReactTag, callback);
}
/**
* Registers a new Animation that can then be added to a View using {@link #addAnimation}.
*/