Ver código fonte

Update readme

Hau Vo 7 anos atrás
pai
commit
0dc7bdaac1
2 arquivos alterados com 4 adições e 4 exclusões
  1. 3
    3
      README.md
  2. 1
    1
      package.json

+ 3
- 3
README.md Ver arquivo

@@ -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 Ver arquivo

@@ -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": {