Procházet zdrojové kódy

simplify the example code

Gaëtan Renaudeau před 8 roky
rodič
revize
47a80c75ab
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1
    2
      README.md

+ 1
- 2
README.md Zobrazit soubor

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