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
 ```javascript
48
 ```javascript
49
 import RNThumbnail from 'react-native-thumbnail';
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
 
1
 
2
 {
2
 {
3
   "name": "react-native-thumbnail",
3
   "name": "react-native-thumbnail",
4
-  "version": "1.0.1",
4
+  "version": "1.0.2",
5
   "description": "",
5
   "description": "",
6
   "main": "index.js",
6
   "main": "index.js",
7
   "scripts": {
7
   "scripts": {