Mark uimanager annotations as deprecated in new architecture

Summary:
This diff marks uimanager annotations as deprecated in new architecture becasue we've decided the native codegen will not be addopted in new architecture

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262580

fbshipit-source-id: 1248117ca697c612c89062fcee56788cce40a1ae
This commit is contained in:
David Vacca
2023-11-15 22:43:49 -08:00
committed by Facebook GitHub Bot
parent 40a99c9345
commit 2aeeb806f1
3 changed files with 6 additions and 0 deletions
@@ -10,6 +10,7 @@ package com.facebook.react.uimanager.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import androidx.annotation.Nullable;
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@@ -46,6 +47,7 @@ import java.lang.annotation.Target;
*/
@Retention(RUNTIME)
@Target(ElementType.METHOD)
@DeprecatedInNewArchitecture
public @interface ReactProp {
// Used as a default value for "customType" property as "null" is not allowed. Moreover, when this
@@ -10,6 +10,7 @@ package com.facebook.react.uimanager.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import androidx.annotation.Nullable;
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@@ -40,6 +41,7 @@ import java.lang.annotation.Target;
* provided as a default.
*/
@Retention(RUNTIME)
@DeprecatedInNewArchitecture
@Target(ElementType.METHOD)
public @interface ReactPropGroup {
@@ -7,6 +7,7 @@
package com.facebook.react.uimanager.annotations;
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
@@ -16,4 +17,5 @@ import java.lang.annotation.Target;
@Inherited
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@DeprecatedInNewArchitecture
public @interface ReactPropertyHolder {}