Browse Source

Update readme

Hau Vo 7 years ago
parent
commit
0dc7bdaac1
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      README.md
  2. 1
    1
      package.json

+ 3
- 3
README.md View File

@@ -48,7 +48,7 @@ Get thumbnail from local media. Currently, it only supports for video.
48 48
 ```javascript
49 49
 import RNThumbnail from 'react-native-thumbnail';
50 50
 
51
-// TODO: What to do with the module?
52
-RNThumbnail;
51
+RNThumbnail.get(filepath).then((result) => {
52
+  console.log(result.path); // thumbnail path
53
+})
53 54
 ```
54
-  

+ 1
- 1
package.json View File

@@ -1,7 +1,7 @@
1 1
 
2 2
 {
3 3
   "name": "react-native-thumbnail",
4
-  "version": "1.0.1",
4
+  "version": "1.0.2",
5 5
   "description": "",
6 6
   "main": "index.js",
7 7
   "scripts": {