Show An Error Message When A Video Fails to Load in React Native
In this lesson we'll show to use the
onError callback from
react-native-video. We'll show how to use a separate
<View/> that'll cover the video and render an error icon from
react-native-vector-icons only if there is an error present.
Finally we'll learn how to setup a
handleError function that'll take the error and error code off the video
meta. This'll let us check against various error codes and give back a custom error message!