Used internally to handle outbound youtube links!
yarn add https://github.com/spykesocial/react-native-thumbnail-video
URL of the video
Can be either default
, high
, medium
, standard
or maximum
.
Width of the image. Defaults to the device width.
Height of the image. Defaults to 200
.
containerStyle
(ViewPropTypes.style)
Style of the container using TouchableOpacity
.
iconStyle
(ImagePropTypes.style)
Style of the icon image.
Show play icon. Defaults to true.
Function to be called when the user presses the thumbnail. Defaults to opening the video URL.
Function to be called when there's an error on the default onPress
function.
Custom component to render inside of the thumbnail.