Browse Source

Update README.md

Gaëtan Renaudeau 7 years ago
parent
commit
ff8e83cc7f
1 changed files with 16 additions and 15 deletions
  1. 16
    15
      README.md

+ 16
- 15
README.md View File

31
     );
31
     );
32
   }
32
   }
33
 }
33
 }
34
-// ScrollView
35
-class ExampleCaptureScrollViewContent extends Component {
36
-  onCapture = uri => {
37
-    console.log("do something with ", uri);
38
-  }
39
-  render() {
40
-    return (
41
-      <ScrollView>
42
-        <ViewShot onCapture={this.onCapture} captureMode="mount">
43
-          <Text>...The Scroll View Content Goes Here...</Text>
44
-        </ViewShot>
45
-      </ScrollView>
46
-    );
47
-  }
48
-}
49
 
34
 
50
 // alternative
35
 // alternative
51
 class ExampleCaptureOnMountSimpler extends Component {
36
 class ExampleCaptureOnMountSimpler extends Component {
77
     );
62
     );
78
   }
63
   }
79
 }
64
 }
65
+
66
+// capture ScrollView content
67
+class ExampleCaptureScrollViewContent extends Component {
68
+  onCapture = uri => {
69
+    console.log("do something with ", uri);
70
+  }
71
+  render() {
72
+    return (
73
+      <ScrollView>
74
+        <ViewShot onCapture={this.onCapture} captureMode="mount">
75
+          <Text>...The Scroll View Content Goes Here...</Text>
76
+        </ViewShot>
77
+      </ScrollView>
78
+    );
79
+  }
80
+}
80
 ```
81
 ```
81
 **Props:**
82
 **Props:**
82
 
83