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

captureScreen not working on iOS

Open cristianoccazinsp opened this issue 3 years ago • 2 comments
trafficstars

bug report

Version & Platform

iOS 15 react-native-view-shot: 3.1.2 react-native-screns: 3.10.1

Platform: iOS

Expected behavior

captureScreen returns a screenshot.

Actual behavior

captureScreen returns a completely white image on iOS. It can be worked around by using captureRef with a ref to some root view in the view hierarchy that is not part of react-navigation or react-native-screens.

Steps to reproduce the behavior

cristianoccazinsp avatar Dec 17 '21 17:12 cristianoccazinsp

This issue might relates to react-native-screens. Maybe incompatibilities with it.

gre avatar May 28 '22 11:05 gre

Confirmed, react-native-screens breaks everything for us too. It seems to screw with React Native's useref system or something, as I can still capture images with ref set to 1 (captures whole screen) but when it's set to any actual ref it crashes the library and stops responding.

Schematic0493 avatar Nov 24 '23 02:11 Schematic0493