mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deprecate method UIManagerModule.viewIsDescendantOf
Summary: We are deprecating the method UIManagerModule.viewIsDescendantOf as this is not going to be part of Fabric. For more context: https://github.com/facebook/react-native/commit/9ae7f0c7dac732c8c2f2253699f7bcf04943e98b#commitcomment-34177828 Reviewed By: fkgozali Differential Revision: D16186404 fbshipit-source-id: 146600c2da20a7a39c50538741d5822838947f3c
This commit is contained in:
committed by
Facebook Github Bot
parent
0fb3fb1d8e
commit
fdd8debee0
@@ -513,7 +513,12 @@ public class UIImplementation {
|
||||
mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback);
|
||||
}
|
||||
|
||||
/** Check if the first shadow node is the descendant of the second shadow node */
|
||||
/**
|
||||
* Check if the first shadow node is the descendant of the second shadow node
|
||||
*
|
||||
* @deprecated This method will not be implemented in Fabric.
|
||||
*/
|
||||
@Deprecated
|
||||
public void viewIsDescendantOf(
|
||||
final int reactTag, final int ancestorReactTag, final Callback callback) {
|
||||
ReactShadowNode node = mShadowNodeRegistry.getNode(reactTag);
|
||||
|
||||
@@ -629,8 +629,13 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
||||
callback);
|
||||
}
|
||||
|
||||
/** Check if the first shadow node is the descendant of the second shadow node */
|
||||
/**
|
||||
* Check if the first shadow node is the descendant of the second shadow node
|
||||
*
|
||||
* @deprecated This method will not be part of Fabric.
|
||||
*/
|
||||
@ReactMethod
|
||||
@Deprecated
|
||||
public void viewIsDescendantOf(
|
||||
final int reactTag, final int ancestorReactTag, final Callback callback) {
|
||||
mUIImplementation.viewIsDescendantOf(reactTag, ancestorReactTag, callback);
|
||||
|
||||
Reference in New Issue
Block a user