Netherlandslucasbento/react-native-thumbnail-video
Easily show thumbnails for videos on react-native.
react-native-thumbnail-video ·
Easily show thumbnails for videos using React Native.
Demo
See the demo on Expo: @lucasbento/react-native-thumbnail-video-example
Installation
yarn add react-native-thumbnail-video
Usage
import { Thumbnail } from 'react-native-thumbnail-video';
// ...
render() {
return (
<Thumbnail url="https://www.youtube.com/watch?v=lgj3D5-jJ74" />
)
}
// ...
Props
Extends Image prop-types
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.
iconStyle (ImagePropTypes.style)
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.
License
MIT © Lucas Bento
Similar Projects
Discover other similar projects and AI models.
Reverse engineer anything with agents, from app behavior down to native binaries.
Desktop app to download audio/video from hundreds of sites
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.