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 () { this.refs.viewShot.capture().then(uri => { console.log("do something with ", uri); }); } render() { return ( ...Something to rasterize... ); } } export {ExampleCaptureOnMountManually}