mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark NativeModule and BaseJavaModule as Stable (#40878)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/40878 Mark NativeModule and BaseJavaModule as Stable changelog: [internal] internal Reviewed By: arushikesarwani94 Differential Revision: D50233129 fbshipit-source-id: 8f02a0db56b11d7df3e83f5f85c3d104e72c9197
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8bbf872a3c
commit
e48d18f2cf
+2
@@ -15,6 +15,7 @@ import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.infer.annotation.ThreadConfined;
|
||||
import com.facebook.react.common.ReactConstants;
|
||||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI;
|
||||
import com.facebook.react.common.build.ReactBuildConfig;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -46,6 +47,7 @@ import java.util.Map;
|
||||
* <p>Please note that it is not allowed to have multiple methods annotated with {@link ReactMethod}
|
||||
* with the same name.
|
||||
*/
|
||||
@StableReactNativeAPI
|
||||
public abstract class BaseJavaModule implements NativeModule {
|
||||
// taken from Libraries/Utilities/MessageQueue.js
|
||||
public static final String METHOD_TYPE_ASYNC = "async";
|
||||
|
||||
+2
@@ -9,6 +9,7 @@ package com.facebook.react.bridge;
|
||||
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI;
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
@@ -18,6 +19,7 @@ import javax.annotation.Nonnull;
|
||||
* not provide any Java code (so they can be reused on other platforms), and instead should register
|
||||
* themselves using {@link CxxModuleWrapper}.
|
||||
*/
|
||||
@StableReactNativeAPI
|
||||
@DoNotStrip
|
||||
public interface NativeModule {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user