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
The issue is that errorStackTrace, errorCode, errorException, and errorString are nested inside of a containing error object, whereas the type definition defines it at the top level:
Bug
The type definition of
OnVideoErrorData
doesn't match the shape of the error returned in Android. I haven't compared it against iOS.The Android data is generated here:
https://github.com/react-native-video/react-native-video/blob/master/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.java#L370
The type is defined here:
https://github.com/react-native-video/react-native-video/blob/master/src/types/events.ts#L120
Platform
Environment info
Library version:
6.0.0-alpha.9
Device: Android Pixel 4 (emulator)
Steps To Reproduce
Expected behaviour
OnVideoErrorData
.Actual Error Shape
Here's the actual shape of the error object when there is an error in Android:
The issue is that
errorStackTrace
,errorCode
,errorException
, anderrorString
are nested inside of a containingerror
object, whereas the type definition defines it at the top level:The
error: string
also appears to be incorrect in this case for Android.The text was updated successfully, but these errors were encountered: