import ViewShot,{ captureScreen,captureRef } from "react-native-view-shot"; // import { captureScreen,captureRef } from "react-native-view-shot"; import React, { PureComponent,Component} from 'react'; import { Header, LoadingIndicator, Text } from '../react/features/base/react'; class ExampleCaptureOnMountManually extends Component { componentDidMount () { // captureScreen // this.refs.viewShot.capture().then(uri => { this.refs.captureScreen.capture().then(uri => { console.log("\n\ndo something with ", uri); }); } render() { // return ( ...Something to rasterize... ); } } export {ExampleCaptureOnMountManually}