From 0dd9e73be0d152fd0af1c0300bc2a663789d3625 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Sat, 7 Feb 2026 18:02:50 -0800 Subject: [PATCH] Add @DoNotStripAny to AnimationBackendChoreographer (#55465) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55465 - AnimationBackendChoreographer.resume() and pause() are called from C++ via JNI reflection in JAnimationBackendChoreographer.cpp, but the class had no ProGuard/R8 protection annotation - R8 renames the methods during minification, causing NoSuchMethodError at runtime when JNI looks up "resume" by name - Every other JNI-accessed class in the fabric package (FabricUIManager, ComponentFactory, StateWrapperImpl, EventEmitterWrapper, EventBeatManager, MountItem) already uses DoNotStripAny — this was the only one missing changelog: [internal] internal Reviewed By: fkgozali Differential Revision: D92628923 fbshipit-source-id: deb7196047e9243cfa702c3d4d96b4431897f097 --- .../com/facebook/react/fabric/AnimationBackendChoreographer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/AnimationBackendChoreographer.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/AnimationBackendChoreographer.kt index 1684b77fbcb..80e52ea320e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/AnimationBackendChoreographer.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/AnimationBackendChoreographer.kt @@ -7,6 +7,7 @@ package com.facebook.react.fabric +import com.facebook.proguard.annotations.DoNotStripAny import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.modules.core.ReactChoreographer import com.facebook.react.uimanager.GuardedFrameCallback @@ -17,6 +18,7 @@ internal fun interface AnimationFrameCallback { fun onAnimationFrame(frameTimeMs: Double) } +@DoNotStripAny internal class AnimationBackendChoreographer( reactApplicationContext: ReactApplicationContext, ) {