0.2.0 • Published 7 years ago

react-native-scroll-screenshot v0.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Installation

Installation can be done through npm:

npm i react-native-scroll-screenshot --save

Usage

用于截取大于一屏幕的长图片

import { NativeModules } from 'react-native';
new Promise((resolve, reject) => {
  NativeModules.RNScrollScreenshot.takeScreenshot(ref, (error, uri) => {
    if (error) reject(error);
    resolve(uri);
  });
});