Explorar el Código

simplify the example code

Gaëtan Renaudeau hace 8 años
padre
commit
47a80c75ab
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      README.md

+ 1
- 2
README.md Ver fichero

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