Skip to content

Commit

Permalink
update documentation for UIManagerProvider interface (#39762)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39762

In an attempt to reduce footprint of React Native Android public APIs we are reducing visibility of classes and interfaces that are not meant to be used publicly OR are public but have no usages.
As part of our analysis, which involved looking for usages inside the Meta codebase and code search in OSS, we've detected that this class/interface is public but it's not used from other packages.

If you are using this class or interface please comment in this PR and we will restate the public access.

changelog: [Android][Changed] Reducing visibility of UIManagerProvider

bypass-github-export-checks

Reviewed By: cortinico

Differential Revision: D49803268

fbshipit-source-id: 8bc261115beae8fe0666ed95b65b01c1772a5d15
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 5, 2023
1 parent 2f1ecea commit 0939908
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@

package com.facebook.react.bridge;

import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;

/**
* @deprecated since this would be deprecated later as part of Stable APIs with bridge removal and
* not encouraged usage.
* {@link UIManagerProvider} is used to create UIManager objects during the initialization of React
* Native. This was introduced as a temporary interface to enable the new renderer of React Native
* in isolation of others part of the new architecture of React Native.
*/
@Deprecated
@DeprecatedInNewArchitecture
public interface UIManagerProvider {

/* Provides a {@link com.facebook.react.bridge.UIManager} for the context received as a parameter. */
UIManager createUIManager(ReactApplicationContext context);
}

0 comments on commit 0939908

Please sign in to comment.