phuochau / react-native-thumbnail

Get thumbnail from local media. Currently, it only supports for video.
MIT License
135 stars 104 forks source link

Implement quality option for ios #24

Open n1ru4l opened 6 years ago

n1ru4l commented 6 years ago

Important:

This pull request is a follow-up to https://github.com/phuochau/react-native-thumbnail/pull/21, please consider merging #21 first.

Code Sample

import RNThumbnail from 'react-native-thumbnail';

RNThumbnail.get(filepath, { quality: 0.1 }).then((result) => {
  console.log(result.path); // thumbnail path
})
phuochau commented 6 years ago

@n1ru4l Seem the example is wrong again? the options should be a parameter of get method?

n1ru4l commented 6 years ago

@phuochau I updated the example, however the code is fully functional