diff --git a/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt b/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt index 8f29779a..b227bfc1 100644 --- a/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt +++ b/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt @@ -48,7 +48,7 @@ enum class EventTypes(val eventName: String) { fun toMap() = mutableMapOf().apply { EventTypes.values().toList().forEach { eventType -> - put("top${eventType.eventName.removePrefix("on")}", mapOf("registrationName" to eventType.eventName)) + put("top${eventType.eventName.removePrefix("on")}", hashMapOf("registrationName" to eventType.eventName)) } } }