https://github.com/phuochau/react-native-thumbnail
  
  
    Get thumbnail from local media. Currently, it only supports for video. 
    https://github.com/phuochau/react-native-thumbnail
  
react-native react-native-component react-native-thumbnail
        Last synced: 3 months ago 
        JSON representation
    
Get thumbnail from local media. Currently, it only supports for video.
- Host: GitHub
 - URL: https://github.com/phuochau/react-native-thumbnail
 - Owner: phuochau
 - License: mit
 - Archived: true
 - Created: 2017-04-19T07:27:15.000Z (over 8 years ago)
 - Default Branch: master
 - Last Pushed: 2019-11-29T10:29:46.000Z (almost 6 years ago)
 - Last Synced: 2025-07-18T07:54:13.530Z (4 months ago)
 - Topics: react-native, react-native-component, react-native-thumbnail
 - Language: Objective-C
 - Homepage:
 - Size: 381 KB
 - Stars: 136
 - Watchers: 2
 - Forks: 101
 - Open Issues: 30
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- awesome-react-native - react-native-thumbnail ★60 - Get thumbnail from local media. (Components / UI)
 - awesome-react-native-native-modules - react-native-thumbnail ★30
 - awesome-react-native - react-native-thumbnail ★60 - Get thumbnail from local media. (Components / UI)
 - awesome-reactnative-ui - react-native-thumbnail
 - awesome-react-native - react-native-thumbnail ★60 - Get thumbnail from local media. (Components / UI)
 - awesome-reactnative-ui - react-native-thumbnail
 - awesome-react-native - react-native-thumbnail ★60 - Get thumbnail from local media. (Components / UI)
 
README
          
# react-native-thumbnail
Get thumbnail from local media. Currently, it only supports for video.
## Getting started
`$ npm install react-native-thumbnail --save`
### Mostly automatic installation
`$ react-native link react-native-thumbnail`
### Manual installation
#### iOS
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-thumbnail` and add `RNThumbnail.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNThumbnail.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<
#### Android
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNThumbnailPackage;` to the imports at the top of the file
  - Add `new RNThumbnailPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-thumbnail'
  	project(':react-native-thumbnail').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-thumbnail/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      implementation project(':react-native-thumbnail')
  	```
## Usage
```javascript
import RNThumbnail from 'react-native-thumbnail';
RNThumbnail.get(filepath).then((result) => {
  console.log(result.path); // thumbnail path
})
```