mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix ReflectionMethodUse: Remove reflection in AnimationDriver error message (#55359)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55359 Fixed ReflectionMethodUse lint error in AnimationDriver.kt. Replaced `javaClass.simpleName` with a hardcoded string to avoid reflection which can cause issues with Redex obfuscation in production builds. changelog: [internal] internal Reviewed By: javache Differential Revision: D91736698 fbshipit-source-id: 9e6c485825aa8e54e5bbdc2d8d872510f3150c4a
This commit is contained in:
1 parent
de5994817d
commit
485bbda6f4
1 file changed
+1
-3
+1
-3
@@ -34,8 +34,6 @@ internal abstract class AnimationDriver {
|
||||
* start animating with the new properties (different destination or spring settings)
|
||||
*/
|
||||
open fun resetConfig(config: ReadableMap) {
|
||||
throw JSApplicationCausedNativeException(
|
||||
"Animation config for ${javaClass.simpleName} cannot be reset"
|
||||
)
|
||||
throw JSApplicationCausedNativeException("Animation config for AnimationDriver cannot be reset")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user