瀏覽代碼

add a disclaimer in usage of `dirs`

Gaëtan Renaudeau 7 年之前
父節點
當前提交
b99a8d156f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      README.md

+ 2
- 0
README.md 查看文件

@@ -48,6 +48,8 @@ Returns a Promise of the image URI.
48 48
 
49 49
 By default, takeSnapshot will export in a temporary folder and the snapshot file will be deleted as soon as the app leaves. If you use the `path` option, you make the snapshot file more permanent and at a specific file location. To make file location more 'universal', the library exports some classic directory constants:
50 50
 
51
+> If you use `dirs`, you own the file and manage its lifecycle: it won't get cleaned so be careful not leaking files on user's phone.
52
+
51 53
 ```js
52 54
 import { takeSnapshot, dirs } from "react-native-view-shot";
53 55
 // cross platform dirs: