Skip to content

Commit 228f9bc

Browse files
authored
Merge pull request #100 from Taym95/master
Add ScrollView example
2 parents 55365d6 + 0541daa commit 228f9bc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ 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+
}
3449

3550
// alternative
3651
class ExampleCaptureOnMountSimpler extends Component {
@@ -63,7 +78,6 @@ class ExampleWaitingCapture extends Component {
6378
}
6479
}
6580
```
66-
6781
**Props:**
6882

6983
- **`children`**: the actual content to rasterize.

0 commit comments

Comments
 (0)