mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deprecate NotThreadSafeViewHierarchyUpdateDebugListener (#47747)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47747 Deprecate NotThreadSafeViewHierarchyUpdateDebugListener as won't be available in new arch and will be deleted changelog: [internal] internal Reviewed By: javache Differential Revision: D66216730 fbshipit-source-id: 88f3346ad38b80a710d9df4ba08b63887048c8cd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0c47e1351f
commit
5dd712fc08
+2
@@ -4,6 +4,8 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
@file:Suppress(
|
||||
"DEPRECATION") // Suppressing deprecation of NotThreadSafeViewHierarchyUpdateDebugListener
|
||||
|
||||
package com.facebook.react.modules.debug
|
||||
|
||||
|
||||
+2
-3
@@ -7,8 +7,6 @@
|
||||
|
||||
package com.facebook.react.uimanager.debug
|
||||
|
||||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture
|
||||
|
||||
/**
|
||||
* A listener that is notified about view hierarchy update events. This listener should only be used
|
||||
* for debug purposes and should not affect application state.
|
||||
@@ -16,7 +14,8 @@ import com.facebook.react.common.annotations.DeprecatedInNewArchitecture
|
||||
* NB: while [onViewHierarchyUpdateFinished] will always be called from the UI thread, there are no
|
||||
* guarantees what thread onViewHierarchyUpdateEnqueued is called on.
|
||||
*/
|
||||
@DeprecatedInNewArchitecture
|
||||
@Deprecated(
|
||||
"NotThreadSafeViewHierarchyUpdateDebugListener will be deleted in the new architecture.")
|
||||
internal interface NotThreadSafeViewHierarchyUpdateDebugListener {
|
||||
/** Called when `UIManagerModule` enqueues a UI batch to be dispatched to the main thread. */
|
||||
fun onViewHierarchyUpdateEnqueued()
|
||||
|
||||
Reference in New Issue
Block a user