Netvent/storyly-sdk

React Native - storylyUserProperty type mismatch

Closed this issue · 1 comments

The prop storylyUserProperty is defined as a Record<string, string>[]; in TypeScript while the documentation says it's aMap<String, String> so we expect it to be a Record<string, string>

Passing userProperties doesn't work and lead to a crash as it does not expect an array of Records
image

Environment Details

Storyly SDK Version: 1.24.1
React Native SDK Version: 0.68.0
Platform:

  • Android
  • iOS

Steps to Reproduce

  1. Add storylyUserProperty props in a typescript react native app

Hello @wass08,

We've released storyly-react-native@1.26.0 that contains a fix for this issue.

Thanks,