Parcourir la source

simplify the example code

Gaëtan Renaudeau il y a 8 ans
Parent
révision
47a80c75ab
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1
    2
      README.md

+ 1
- 2
README.md Voir le fichier

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