diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.kt similarity index 54% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.kt index 1fb137716b7013..38f4c90820293f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.kt @@ -5,28 +5,28 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.bridge; +package com.facebook.react.bridge /** * Type representing a piece of data with unknown runtime type. Useful for allowing javascript to * pass one of multiple types down to the native layer. */ public interface Dynamic { - boolean isNull(); + public fun asArray(): ReadableArray - boolean asBoolean(); + public fun asBoolean(): Boolean - double asDouble(); + public fun asDouble(): Double - int asInt(); + public fun asInt(): Int - String asString(); + public fun asMap(): ReadableMap - ReadableArray asArray(); + public fun asString(): String - ReadableMap asMap(); + public fun getType(): ReadableType - ReadableType getType(); + public fun isNull(): Boolean - void recycle(); + public fun recycle(): Unit }