Hau Vo 7 lat temu
rodzic
commit
0dc7bdaac1
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3
    3
      README.md
  2. 1
    1
      package.json

+ 3
- 3
README.md Wyświetl plik

@@ -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 Wyświetl plik

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