I am wanting to implement a download receipt functionality. I am tyring to use capture Ref because I want to generate a image of receipt that user can download. To generate the image from JSX or html in react native/expo, I use capture Ref. I can only do this with view rendering because this function requires a React component.
https://docs.expo.dev/versions/latest/sdk/captureRef/
but I cannot do this without display the UI to user. What I want to do is, stay on the page, click download button, and have the image downloaded that I can custom create and not show it to the user. But, I cannot quite find a way to just create a image from JSX with content I want in receipt and not show to user. Basically, I want this whole process to happen in background and download to be success.