• This repository has been archived on 08/Oct/2019
  • Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

More Repositories

1

graphql-pokemon

Get information of a Pokémon with GraphQL!
JavaScript
503
star
2

reminders-cli

Command-line interface to interact with the Reminders.app
JavaScript
89
star
3

react-relay-pokemon

Use React & Relay as your Pokedex!
JavaScript
86
star
4

menubar-brightness

MacOS app to change the screen brightness on the menubar.
JavaScript
80
star
5

rn-update-deprecated-modules

Codemod to update import declarations as per react-native > 0.59.x deprecations.
JavaScript
72
star
6

react-native-actions

Run React Native actions from within VSCode.
Objective-C
70
star
7

graphql-correios

✉️ Interact with Brazil's post-office through GraphQL!
JavaScript
59
star
8

auto-close-issues

Automatically close issues that don't follow the issue template.
JavaScript
52
star
9

react-tic-tac-toe

Tic Tac Toe in React
JavaScript
40
star
10

react-redux-todo

React & Redux Todo Application
JavaScript
27
star
11

likes

🔥 Everything I liked
16
star
12

node-applescript-promise

Easily execute arbitrary AppleScript code on OS X through NodeJS with Promises.
JavaScript
13
star
13

vovo-juju-cli

Falas da Vovó Juju no terminal
JavaScript
9
star
14

minidash

Small terminal-based dashboard to monitor your server.
TypeScript
5
star
15

mobile-flashcards

Udacity Project Reviewer Application
JavaScript
3
star
16

react-playground

React Experiments
JavaScript
3
star
17

koa-playground

Koa 2 Experiments
JavaScript
3
star
18

is-package-dep

Parses the closest package.json file and returns whether it contains the dependency or not.
JavaScript
3
star
19

core-workflow-apply-version-label

JavaScript
3
star
20

module-boilerplate

Module boilerplate to quickly start packages
JavaScript
2
star
21

RNCalendars31DayBug

Objective-C
2
star
22

react-native-test-app

Simple React Native app with redux-saga, redux-saga-test-plan & react-native-testing-library
JavaScript
2
star
23

inline-mdx-error

Project to show an error with `inline-mdx.macro` https://github.com/hamlim/inline-mdx.macro/issues/10
JavaScript
2
star
24

get-ios-devices

Get a list of iOS devices and simulators
JavaScript
2
star
25

RNWithFlipper

Java
1
star
26

readable

Udacity Project Reviewer Application
JavaScript
1
star
27

core-workflow-create-version-label

JavaScript
1
star
28

test-issue-forms

1
star