| 
				
					
						 | 
			hace 6 años | |
|---|---|---|
| Example | hace 7 años | |
| android | hace 7 años | |
| ios | hace 7 años | |
| .gitattributes | hace 8 años | |
| .gitignore | hace 8 años | |
| .npmignore | hace 8 años | |
| LICENSE | hace 7 años | |
| README.md | hace 6 años | |
| RNThumbnail.podspec | hace 7 años | |
| index.js | hace 8 años | |
| package.json | hace 7 años | |
| yarn.lock | hace 7 años | 
Get thumbnail from local media. Currently, it only supports for video.
$ npm install react-native-thumbnail --save
$ react-native link react-native-thumbnail
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-thumbnail and add RNThumbnail.xcodeprojlibRNThumbnail.a to your project’s Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNThumbnailPackage; to the imports at the top of the filenew RNThumbnailPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-thumbnail'
project(':react-native-thumbnail').projectDir = new File(rootProject.projectDir,    '../node_modules/react-native-thumbnail/android')
android/app/build.gradle:
  implementation project(':react-native-thumbnail')
import RNThumbnail from 'react-native-thumbnail';
RNThumbnail.get(filepath).then((result) => {
  console.log(result.path); // thumbnail path
})