You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Jmilham21
added
bug
Something isn't working
Groomed
JWP team has reviewed the ticket and deemed it necessary
and removed
needs-grooming
Has not been reviewed by codeowners for scope/validation
labels
Oct 21, 2024
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
The text was updated successfully, but these errors were encountered: