Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

rn_vshot.native.js 700B

123456789101112131415161718192021222324252627282930313233
  1. import ViewShot,{ captureScreen,captureRef } from "react-native-view-shot";
  2. // import { captureScreen,captureRef } from "react-native-view-shot";
  3. import React, { PureComponent,Component} from 'react';
  4. import { Header, LoadingIndicator, Text } from '../react/features/base/react';
  5. class ExampleCaptureOnMountManually extends Component {
  6. componentDidMount () {
  7. this.refs.viewShot.capture().then(uri => {
  8. console.log("do something with ", uri);
  9. });
  10. }
  11. render() {
  12. return (
  13. <ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}>
  14. <Text>...Something to rasterize...</Text>
  15. </ViewShot>
  16. );
  17. }
  18. }
  19. export {ExampleCaptureOnMountManually}