mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Kotlinify IllegalViewOperationException (#43794)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43794 Changelog: [Internal] As part of the Sustainability Week (see [post](https://fb.workplace.com/groups/251759413609061/permalink/742797531171911/)). Reviewed By: alanleedev Differential Revision: D55653543 fbshipit-source-id: 71414e4b46aea7497bb64881cfb99d3b5c84c150
This commit is contained in:
committed by
Facebook GitHub Bot
parent
669bcb8675
commit
ed3c0a1423
@@ -4055,7 +4055,7 @@ public abstract interface class com/facebook/react/uimanager/IViewManagerWithChi
|
||||
public class com/facebook/react/uimanager/IllegalViewOperationException : com/facebook/react/bridge/JSApplicationCausedNativeException {
|
||||
public fun <init> (Ljava/lang/String;)V
|
||||
public fun <init> (Ljava/lang/String;Landroid/view/View;Ljava/lang/Throwable;)V
|
||||
public fun getView ()Landroid/view/View;
|
||||
public final fun getView ()Landroid/view/View;
|
||||
}
|
||||
|
||||
public class com/facebook/react/uimanager/JSPointerDispatcher {
|
||||
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.bridge.JSApplicationCausedNativeException;
|
||||
|
||||
/** An exception caused by JS requesting the UI manager to perform an illegal view operation. */
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class IllegalViewOperationException extends JSApplicationCausedNativeException {
|
||||
|
||||
@Nullable private View mView;
|
||||
|
||||
public IllegalViewOperationException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public IllegalViewOperationException(String msg, @Nullable View view, Throwable cause) {
|
||||
super(msg, cause);
|
||||
mView = view;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public View getView() {
|
||||
return mView;
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.uimanager
|
||||
|
||||
import android.view.View
|
||||
import com.facebook.react.bridge.JSApplicationCausedNativeException
|
||||
|
||||
/** An exception caused by JS requesting the UI manager to perform an illegal view operation. */
|
||||
public open class IllegalViewOperationException : JSApplicationCausedNativeException {
|
||||
private var view: View? = null
|
||||
|
||||
public constructor(msg: String) : super(msg)
|
||||
|
||||
public constructor(msg: String, view: View?, cause: Throwable) : super(msg, cause) {
|
||||
this.view = view
|
||||
}
|
||||
|
||||
public fun getView(): View? = view
|
||||
}
|
||||
Reference in New Issue
Block a user