Skip to content

Get thumbnail from local media. Currently, it only supports for video.

License

Notifications You must be signed in to change notification settings

Crysp/react-native-thumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-thumb

Get thumbnail from local media. Currently, it only supports for video.

Getting started

$ npm install react-native-thumb --save

Mostly automatic installation

$ react-native link react-native-thumb

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-thumb and add RNThumb.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNThumb.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import RNThumb from 'react-native-thumb';

RNThumb.get(filepath, 100).then((result) => {
  console.log(result.path); // thumbnail path
})

About

Get thumbnail from local media. Currently, it only supports for video.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published