mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add back @Deprecated in ViewUtil (#44011)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44011 Add back `Deprecated` annotation which was removed in D55651762 Changelog: [Internal] internal Reviewed By: javache Differential Revision: D55955345 fbshipit-source-id: bc255983a57fa01e63b17400079cf4215de9a41f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
80aa714630
commit
244eb42b33
+7
-1
@@ -31,6 +31,7 @@ public object ViewUtil {
|
||||
* @param viewTag tag of the view this is event is dispatched to
|
||||
* @param surfaceId ID of the corresponding surface
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@JvmStatic
|
||||
@UIManagerType
|
||||
public fun getUIManagerType(viewTag: Int, surfaceId: Int): Int {
|
||||
@@ -59,5 +60,10 @@ public object ViewUtil {
|
||||
* @param viewTag react tag
|
||||
* @return if the react tag received by parameter is a RootTag or not.
|
||||
*/
|
||||
@JvmStatic public fun isRootTag(viewTag: Int): Boolean = viewTag % 10 == 1
|
||||
@Deprecated(
|
||||
"You should not check the tag of the view to inspect if it's the rootTag. " +
|
||||
"Relying on this logic could make your app/library break in the future.",
|
||||
ReplaceWith(""))
|
||||
@JvmStatic
|
||||
public fun isRootTag(viewTag: Int): Boolean = viewTag % 10 == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user