diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.kt similarity index 76% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.kt index 35810f65979e5f..37e45a60c895ae 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.kt @@ -5,9 +5,9 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.bridge; +package com.facebook.react.bridge -public enum MemoryPressure { +public enum class MemoryPressure { UI_HIDDEN, MODERATE, CRITICAL diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.kt similarity index 81% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.kt index 8d036958b065ec..0e5ef3aff09111 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.kt @@ -5,11 +5,10 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.bridge; +package com.facebook.react.bridge /** Listener interface for memory pressure events. */ public interface MemoryPressureListener { - /** Called when the system generates a memory warning. */ - void handleMemoryPressure(int level); + public fun handleMemoryPressure(level: Int) }