Take fullscreen screenshot of React Native views including offscreen parts.
It saved into your albums in IOS.
$ npm i https://github.com/0nlyoung7/react-native-scrolling-screenshot.git
Add the .m and .h files to library folder in Xcode
Add key in your Info.plist
<key>NSPhotoLibraryUsageDescription</key>
<string>Save screenshot in PhotoAlbum</string>
import findNodeHandle from 'findNodeHandle';
import ScrollingScreenshot from 'react-native-scrolling-screenshot';
var ref = findNodeHandle(this.refs.webview);
ScrollingScreenshot.takeScreenshot(ref, (error, result) => {
if (error) {
console.log(error);
} else {
// And the result in your PhotoAlbum
console.log(result)
}
});
You can get fullsize screenshot in WebView also, for example StackOverflow
$ cd Example
$ npm install
Then, Run in XCODE
- Android Support issue