Browse Source

auto commit

app
jfinn 3 years ago
parent
commit
edb9fd8048
1 changed files with 4 additions and 7 deletions
  1. 4
    7
      mdev/rn_vshot.native.js

+ 4
- 7
mdev/rn_vshot.native.js View File

7
 
7
 
8
 class ExampleCaptureOnMountManually extends Component {
8
 class ExampleCaptureOnMountManually extends Component {
9
   componentDidMount () {
9
   componentDidMount () {
10
-  	// captureScreen
11
-    // this.refs.viewShot.capture().then(uri => {
12
-    this.refs.captureScreen.capture().then(uri => {
13
-      console.log("\n\ndo something with ", uri);
10
+    this.refs.viewShot.capture().then(uri => {
11
+      console.log("do something with ", uri);
14
     });
12
     });
15
   }
13
   }
16
   render() {
14
   render() {
17
-      // <ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}>
18
     return (
15
     return (
19
-      <ViewShot ref="captureScreen" options={{ format: "jpg", quality: 0.9 }}>
20
-        <Text style={{background:"red"}}>...Something to rasterize...</Text>
16
+      <ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}>
17
+        <Text>...Something to rasterize...</Text>
21
       </ViewShot>
18
       </ViewShot>
22
     );
19
     );
23
   }
20
   }

Loading…
Cancel
Save