/**
* Sample How To Screenshot Screen inside of ScrollView
* The original github from
* https://github.com/gre/react-native-view-shot
*/
import React, {Component} from 'react';
import {ScrollView, StyleSheet, Text, View, Button, Image, } from 'react-native';
import ViewShot from "react-native-view-shot";
export default class App extends Component {
constructor(props) {
super(props)
this.state={
error: null,
res: null,
options: {
format: "jpg",
quality: 0.9
}
}
}
renderContent()
{
const data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];
return data.map((item,index) => {
return (
{item}
);
})
}
renderResultSnapshot()
{
if(this.state.res!==null)
{
console.log('Result on return snapshot: ', this.state.res);
return(
);
}
return;
}
renderShootButton(){
return(