didomi / react-native

Didomi SDK for React Native
Other
9 stars 2 forks source link

All values on android is strings #120

Open johankasperi opened 3 weeks ago

johankasperi commented 3 weeks ago

Because of this line https://github.com/didomi/react-native/blob/8a2a804091e5ab1cbd699a9d3629201587d7004f/android/src/main/java/com/reactnativedidomi/DidomiModule.kt#L312 all values on android is strings. For example when using getDidomiUserStatus().vendors["example vendor"].enabled the value is "true" or "false" instead of a boolean that your type definition says that it should be.

I'm using version 2.4.0.

Thank you!

pmerlet-at-didomi commented 3 weeks ago

Hello @johankasperi , thanks for your feedback. We'll make sure to fix this in the next release.