react-native-view-shot icon indicating copy to clipboard operation
react-native-view-shot copied to clipboard

is not working with EXPO 52

Open yestoall opened this issue 1 year ago • 19 comments

it was workint with expo 51 but it doesn't seems to work with expo 52 any ideas?

yestoall avatar Nov 23 '24 20:11 yestoall

i found a solution changing snapshotContentContainer: true to snapshotContentContainer: false

now its working as usual

yestoall avatar Nov 23 '24 21:11 yestoall

Yup same can' seem to make it work, I keep getting "Failed to snapshot view tag 118" and I had it working before.

Adding snapshotContentContainer: false to he options doesn't seem to change it for me

Tsabary avatar Nov 25 '24 13:11 Tsabary

Same here, I've updated to 52 and using "react-native-view-shot": "4.0.2", I've also added snapshotContentContainer: false to he options but still get Error: Failed to snapshot view tag. Was working with 51

javalen avatar Nov 25 '24 18:11 javalen

Same, react-native-view-shot 4.0.2 work for ios but not work for android I just follow the tutorial https://docs.expo.dev/tutorial/screenshot/ and try to make a app with expo

jimmyrogue avatar Nov 26 '24 02:11 jimmyrogue

me too error when i update expo 52

kunchit avatar Nov 26 '24 11:11 kunchit

Me too, back to 4.0.0 or 3.8.0 didn't help, maybe problem with expo 52

wasupak avatar Nov 27 '24 02:11 wasupak

I have the same issue, when i try to use the useRef.current.capture() send me an error only on android before i update to expo 52

Camiloadh99 avatar Nov 27 '24 22:11 Camiloadh99

I have the same issue, when i try to use the useRef.current.capture() send me an error only on android before i update to expo 52

I rolled back to 51 and it's working. Hope we can get a fix soon because exp-go updates to 52 automatically

javalen avatar Nov 27 '24 22:11 javalen

I have the same issue on Android, any solution?

Beowulf1220 avatar Nov 29 '24 02:11 Beowulf1220

I have the same issue on Android, but I tried on iOS and it works perfect. Adding snapshotContentContainer: false to he options doesn't seem to change it for me

torresjr94dev avatar Nov 29 '24 04:11 torresjr94dev

Im having same issue on android

Solutech11 avatar Nov 30 '24 17:11 Solutech11

+1

theprantadutta avatar Dec 03 '24 11:12 theprantadutta

I have the same issue

lecion avatar Dec 03 '24 14:12 lecion

I have the same issue, Expo 52

ronix99 avatar Dec 03 '24 23:12 ronix99

I only get this error when using Expo Go. When running a development build everything works as expected.

eeebuba avatar Dec 05 '24 13:12 eeebuba

I only get this error when using Expo Go. When running a development build everything works as expected.

Can confirm that the error only occurs in Expo Go on Android. captureRef works as expected in a development or production build.

globemediaofficial avatar Dec 06 '24 06:12 globemediaofficial

It didn't work for me when I built it to an apk

On Fri, Dec 6, 2024, 1:43 AM globemediaofficial @.***> wrote:

I only get this error when using Expo Go. When running a development build everything works as expected.

Can confirm that the error only occurs in Expo Go on Android. captureRef works as expected in a development or production build.

— Reply to this email directly, view it on GitHub https://github.com/gre/react-native-view-shot/issues/550#issuecomment-2522257819, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUTPCLFE4DBYH7Z4M74CYL2EFBRPAVCNFSM6AAAAABSLOLPUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRSGI2TOOBRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dovidweisz avatar Dec 06 '24 17:12 dovidweisz

By far, captureRef was broken, but <ViewShot> still works on iOS 18.1.

You guys may try: https://github.com/gre/react-native-view-shot?tab=readme-ov-file#high-level-api

meathill avatar Dec 09 '24 09:12 meathill

For RN 0.76.5, It worked for me:

  • Updating the ndkVersion to “27.2.12479018”
  • Update the package to version 4.0.3

msanhueza-yont avatar Jan 15 '25 21:01 msanhueza-yont