Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cervisebas opened this issue Jan 10, 2023 · 7 comments · Fixed by #516
Closed

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

cervisebas opened this issue Jan 10, 2023 · 7 comments · Fixed by #516

Comments

@cervisebas
Copy link

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

@andy7076
Copy link

andy7076 commented Apr 3, 2023

+1

1 similar comment
@faceyspacey
Copy link

+1

@Nensi9
Copy link

Nensi9 commented Jun 29, 2023

Yes, it's not working with new version

@sohayb
Copy link

sohayb commented Nov 24, 2023

Same issue as #469

@RP-alissonpaschoal
Copy link

+1 🥲

@rohit-jindal018
Copy link

capture not working in Android new architecture.

@cortinico
Copy link
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)

@gre gre closed this as completed in #516 Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants