Error: getAllContacts Catch: TypeError: contact.photo.toBase64String is not a function. (In 'contact.photo.toBase64String("png")', 'contact.photo.toBase64String' is undefined)
I also tried to do ImageSourceModule.fromNativeSource(contact.photo).toBase64String("png")
and ImageSourceModule.fromNativeSource(contact.photo.ios).toBase64String("png")
this will lead to an error setNativeSource is not UIImage
Platform: ios
method call: getAllContacts()
config: const desiredFields = ["name", "phoneNumbers", "photo"];
code called: contact.photo && contact.photo.toBase64String("png")
Error: getAllContacts Catch: TypeError: contact.photo.toBase64String is not a function. (In 'contact.photo.toBase64String("png")', 'contact.photo.toBase64String' is undefined)
This happens on the first object with image:
I also tried to do ImageSourceModule.fromNativeSource(contact.photo).toBase64String("png") and ImageSourceModule.fromNativeSource(contact.photo.ios).toBase64String("png") this will lead to an error setNativeSource is not UIImage