Преглед на файлове

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