|
@@ -7,17 +7,14 @@ import { Header, LoadingIndicator, Text } from '../react/features/base/react';
|
7
|
7
|
|
8
|
8
|
class ExampleCaptureOnMountManually extends Component {
|
9
|
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
|
14
|
render() {
|
17
|
|
- // <ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}>
|
18
|
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
|
18
|
</ViewShot>
|
22
|
19
|
);
|
23
|
20
|
}
|