Mark ReactPackage.getModule as UnstableReactNativeAPI (#39337)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39337

Mark ReactPackage.getModule as UnstableReactNativeAPI

changelog: [internal] internal

Reviewed By: arushikesarwani94

Differential Revision: D49068233

fbshipit-source-id: 56be5c08eaa5b33c069e540ba452dba30111a64f
This commit is contained in:
David Vacca 2023-09-14 11:13:16 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 33181ef8af
Коммит ab806bd60e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -12,6 +12,7 @@ import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture; import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
import com.facebook.react.uimanager.UIManagerModule; import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.ViewManager; import com.facebook.react.uimanager.ViewManager;
import java.util.List; import java.util.List;
@ -56,6 +57,7 @@ public interface ReactPackage {
* @param reactContext {@link ReactApplicationContext} context for this * @param reactContext {@link ReactApplicationContext} context for this
*/ */
@Nullable @Nullable
@UnstableReactNativeAPI
default NativeModule getModule( default NativeModule getModule(
@NonNull String name, @NonNull ReactApplicationContext reactContext) { @NonNull String name, @NonNull ReactApplicationContext reactContext) {
return null; return null;