Closed
Description
bug report
Version & Platform
- react-native: 0.70.6
- react-native-view-shot: ^3.5.0
Platform: Android
Expected behavior
I was expecting a capture of the components to be performed.
Actual behavior
Las funciones de captura no devuelven ningun tipo de resultado, no muestran errores y no accionan nada.
El componente "ViewShoot" funciona pero solo se comporta como un componente "View" normal.
Steps to reproduce the behavior
import React, { PureComponent } from "react";
import { Text } from "react-native";
import ViewShot from "react-native-view-shot";
export default class Example extends PureComponent {
constructor(props) {
super(props);
}
private refViewShot = createRef();;
componentDidMount() {
this.refViewShot.current.capture()
.then((uri)=>console.log(uri))
.catch((err)=>console.log(err));
}
render() {
return(
Hello friends!!!
);
}
}
Metadata
Metadata
Assignees
Labels
No labels