Skip to content

Instantly share code, notes, and snippets.


Taym Haddadi Taym95

Block or report user

Report or block Taym95

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Taym95 / react-native-view-shot-with-modal.js
Last active Mar 5, 2019
Take screenshot of a modal with react-native-view-shot
View react-native-view-shot-with-modal.js
class ExampleCaptureModal extends Component {
onCapture = uri => {
this.refs.viewShot.capture().then(uri => {
console.log("do something with ", uri);
render() {
return (
<ViewShot ref="viewShot" options={{ format: "jpg", quality: 0.9 }}>
<Modal>Your Modal content</Modal>
You can’t perform that action at this time.