Skip to content

Commit ff8e83c

Browse files
authored
Update README.md
1 parent 228f9bc commit ff8e83c

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@ class ExampleCaptureOnMountManually extends Component {
3131
);
3232
}
3333
}
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-
}
4934

5035
// alternative
5136
class ExampleCaptureOnMountSimpler extends Component {
@@ -77,6 +62,22 @@ class ExampleWaitingCapture extends Component {
7762
);
7863
}
7964
}
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+
}
8081
```
8182
**Props:**
8283

0 commit comments

Comments
 (0)