File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff 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
5136class 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
You can’t perform that action at this time.
0 commit comments