Describe the bug
When handling playlist item change events the event.nativeEvent.playlistItem should be of PlaylistItem interface, but instead it is coming through as a string which means you cannot access it's properties such as title, description etc without JSON parsing.
Describe the bug When handling playlist item change events the
event.nativeEvent.playlistItem
should be ofPlaylistItem
interface, but instead it is coming through as a string which means you cannot access it's properties such as title, description etc without JSON parsing.To Reproduce
In the above example, I get the output:
Playlist Item Type string
Expected behavior It should be an object of type PlaylistItem according to: https://github.com/jwplayer/jwplayer-react-native/blob/master/index.d.ts#L500
Device(s) affected All devices
Additional context As a hacky workaround work around