mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add backward compatible support for onLayout event in Fabric
Reviewed By: achen1 Differential Revision: D8231722 fbshipit-source-id: 3d0641a7813e742ca81b98576f9ffc30ee597f30
This commit is contained in:
committed by
Facebook Github Bot
parent
6c989fe7c6
commit
6aea98441a
+2
-2
@@ -224,11 +224,11 @@ public class NativeViewHierarchyManager {
|
||||
public long getInstanceHandle(int reactTag) {
|
||||
View view = mTagsToViews.get(reactTag);
|
||||
if (view == null) {
|
||||
throw new IllegalArgumentException("Unable to find view for tag: " + reactTag);
|
||||
throw new IllegalViewOperationException("Unable to find view for tag: " + reactTag);
|
||||
}
|
||||
Long instanceHandle = (Long) view.getTag(R.id.view_tag_instance_handle);
|
||||
if (instanceHandle == null) {
|
||||
throw new IllegalArgumentException("Unable to find instanceHandle for tag: " + reactTag);
|
||||
throw new IllegalViewOperationException("Unable to find instanceHandle for tag: " + reactTag);
|
||||
}
|
||||
return instanceHandle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user