gre / react-native-view-shot

Snapshot a React Native view and save it to an image
https://github.com/gre/react-native-view-shot-example
MIT License
2.67k stars 346 forks source link

Large image is empty / blank on iOS. useRenderWithContext doesn't exists #437

Closed israel-dv closed 1 year ago

israel-dv commented 2 years ago

bug report

I 'm capturing a list, but the bigger the list, the image becomes empty.

This only happens on iOS, in android works well

Version & Platform

react-native-view-sho: 3.4.0

Platform: iOS

Steps to reproduce the behavior

Take a shoot in a list component when the list is very big.

hengkx commented 2 years ago

3.5.0 same

BuhTig8 commented 1 year ago
<ScrollView
    ref={this._scrollView}
    style={styles.scrollView}>
    ...
</ScrollView>
const uri = await captureRef(this._scrollView.current, {
      snapshotContentContainer: true,
      useRenderInContext: true,
    });

I use useRenderInContext Solved the problem。