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

Capturing custom native module #425

Closed dfrl-dev closed 2 years ago

dfrl-dev commented 2 years ago

Am I misunderstanting, or is it impossible to capture a custom/complex view?

I've implmented a native component for a piece of camera hardware, and I'd like to capture a thumbnail, but can only seem to get blank white images.

Is the interoperability table the hard and fast list of supported views?

gre commented 2 years ago

it may or may not working depending on if the underlying technology allows to be captured with the current approach we have. respectively:

Then, there are two possibilities to solve a view that wouldn't be captured:

Thanks