react-native-view-shot
react-native-view-shot copied to clipboard
captureScreen not working on iOS
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
This issue might relates to react-native-screens. Maybe incompatibilities with it.
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.