I’m trying to pass an array of objects to Kotlin from react native but when i call it i’m getting
Error: Call to function 'ExpoSettings.printArrayOfRecords' has been rejected.
→ Caused by: java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeMap cannot be cast to expo.
internal class Person : Record {
@Field
var name: String? = null
}
Function ("printArrayOfRecords") { array: Array<Person> ->
array.forEach { record ->
println(record.name)
}
}