Skip to content

spykesocial/react-native-thumbnail-video

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom YouTube thumbnail video with YouTube logo component

Used internally to handle outbound youtube links!

Installation

yarn add https://github.com/spykesocial/react-native-thumbnail-video

Props

url (string)

URL of the video

type ([string])

Can be either default, high, medium, standard or maximum.

imageWidth (number/string)

Width of the image. Defaults to the device width.

imageHeight (number/string)

Height of the image. Defaults to 200.

containerStyle (ViewPropTypes.style)

Style of the container using TouchableOpacity.

Style of the icon image.

showPlayIcon (boolean)

Show play icon. Defaults to true.

onPress (function)

Function to be called when the user presses the thumbnail. Defaults to opening the video URL.

onError (function)

Function to be called when there's an error on the default onPress function.

children (component)

Custom component to render inside of the thumbnail.

About

Easily show thumbnails for videos on react-native.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%