Skip to content

Commit b13ea17

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Remove deprecation of onCatalystInstanceDestroy (#40777)
Summary: Pull Request resolved: #40777 In this diff I'm removing the deprecation of NativeModule.onCatalystInstanceDestroy() method, changing it to DeprecatedInNewArchitecture changelog: [Android][Breaking] Mark NativeModule.onCatalystInstanceDestroy() method as deprecated in new architecture Reviewed By: christophpurrer Differential Revision: D50141027 fbshipit-source-id: a4c4911bdadc27f981f3af0522317e6dd08d9344
1 parent 7a31ecd commit b13ea17

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface NativeMethod {
5252
*
5353
* @deprecated use {@link #invalidate()} instead.
5454
*/
55-
@Deprecated(since = "Use invalidate method instead", forRemoval = true)
55+
@DeprecatedInNewArchitecture(message = "Use invalidate method instead")
5656
void onCatalystInstanceDestroy();
5757

5858
/** Allow NativeModule to clean up. Called before React Native instance is destroyed. */

0 commit comments

Comments
 (0)