diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java index 8a3fe903b5a..3c283271487 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java @@ -28,6 +28,7 @@ import java.util.Map; @SuppressLint("HardwareIds") public class AndroidInfoModule extends NativePlatformConstantsAndroidSpec implements TurboModule { private static final String IS_TESTING = "IS_TESTING"; + private static final String IS_DISABLE_ANIMATIONS = "IS_DISABLE_ANIMATIONS"; public AndroidInfoModule(ReactApplicationContext reactContext) { super(reactContext); @@ -75,6 +76,10 @@ public class AndroidInfoModule extends NativePlatformConstantsAndroidSpec implem } constants.put( "isTesting", "true".equals(System.getProperty(IS_TESTING)) || isRunningScreenshotTest()); + String isDisableAnimations = System.getProperty(IS_DISABLE_ANIMATIONS); + if (isDisableAnimations != null) { + constants.put("isDisableAnimations", "true".equals(isDisableAnimations)); + } constants.put("reactNativeVersion", ReactNativeVersion.VERSION); constants.put("uiMode", uiMode()); return constants;