Skip to content

Commit 5dd712f

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Deprecate NotThreadSafeViewHierarchyUpdateDebugListener (facebook#47747)
Summary: Pull Request resolved: facebook#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
1 parent 0c47e13 commit 5dd712f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7+
@file:Suppress(
8+
"DEPRECATION") // Suppressing deprecation of NotThreadSafeViewHierarchyUpdateDebugListener
79

810
package com.facebook.react.modules.debug
911

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/debug/NotThreadSafeViewHierarchyUpdateDebugListener.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77

88
package com.facebook.react.uimanager.debug
99

10-
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture
11-
1210
/**
1311
* A listener that is notified about view hierarchy update events. This listener should only be used
1412
* for debug purposes and should not affect application state.
1513
*
1614
* NB: while [onViewHierarchyUpdateFinished] will always be called from the UI thread, there are no
1715
* guarantees what thread onViewHierarchyUpdateEnqueued is called on.
1816
*/
19-
@DeprecatedInNewArchitecture
17+
@Deprecated(
18+
"NotThreadSafeViewHierarchyUpdateDebugListener will be deleted in the new architecture.")
2019
internal interface NotThreadSafeViewHierarchyUpdateDebugListener {
2120
/** Called when `UIManagerModule` enqueues a UI batch to be dispatched to the main thread. */
2221
fun onViewHierarchyUpdateEnqueued()

0 commit comments

Comments
 (0)