Browse Source

simplify the example code

Gaëtan Renaudeau 8 years ago
parent
commit
47a80c75ab
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      README.md

+ 1
- 2
README.md View File

@@ -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
 })