浏览代码

simplify the example code

Gaëtan Renaudeau 8 年前
父节点
当前提交
47a80c75ab
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      README.md

+ 1
- 2
README.md 查看文件

10
 ## Usage
10
 ## Usage
11
 
11
 
12
 ```js
12
 ```js
13
-import { findNodeHandle } from "react-native";
14
 import RNViewShot from "react-native-view-shot";
13
 import RNViewShot from "react-native-view-shot";
15
 
14
 
16
-RNViewShot.takeSnapshot(findNodeHandle(aRef), {
15
+RNViewShot.takeSnapshot(viewRef, {
17
   format: "jpeg",
16
   format: "jpeg",
18
   quality: 0.8
17
   quality: 0.8
19
 })
18
 })