Skip to content

It doesn't work on the new architecture of react native #452

Closed

Description

@cervisebas

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!!!
);
}
}

Activity

  1. andy7076 commented on Apr 3, 2023

    @andy7076

    +1

  2. faceyspacey commented on Apr 21, 2023

    @faceyspacey

    +1

  3. Nensi9 commented on Jun 29, 2023

    @Nensi9

    Yes, it's not working with new version

  4. sohayb commented on Nov 24, 2023

    @sohayb

    Same issue as #469

  5. RP-alissonpaschoal commented on Dec 1, 2023

    @RP-alissonpaschoal

    +1 🥲

  6. rohit-jindal018 commented on Dec 11, 2023

    @rohit-jindal018

    capture not working in Android new architecture.

  7. cortinico commented on Mar 21, 2024

    @cortinico
    Contributor

    Here the fix for this library:

    Please note that this would work only from 0.74.0-rc5 onwards (which is going to be published on Monday)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions