瀏覽代碼

simplify the example code

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

+ 1
- 2
README.md 查看文件

@@ -10,10 +10,9 @@ The image will be stored in a temporary file that will only exist for as long as
10 10
 ## Usage
11 11
 
12 12
 ```js
13
-import { findNodeHandle } from "react-native";
14 13
 import RNViewShot from "react-native-view-shot";
15 14
 
16
-RNViewShot.takeSnapshot(findNodeHandle(aRef), {
15
+RNViewShot.takeSnapshot(viewRef, {
17 16
   format: "jpeg",
18 17
   quality: 0.8
19 18
 })