Skip to content

Commit

Permalink
Deprecate NotThreadSafeViewHierarchyUpdateDebugListener (facebook#47747)
Browse files Browse the repository at this point in the history
Summary:

Deprecate NotThreadSafeViewHierarchyUpdateDebugListener as won't be available in new arch and will be deleted


changelog: [internal] internal

Reviewed By: javache

Differential Revision: D66216730
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 22, 2024
1 parent 666a7fb commit db2901f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@

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.
*
* 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()
Expand Down

0 comments on commit db2901f

Please sign in to comment.