You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there and thanks for the amazing work on this project! I wonder if it's possible for the makeImageSnapshot function to capture the contents of nested canvas elements, as of now snapshoting an image with this function would return an image where the Canvas is as a blank space. Lets see the following example:
constref=useRef<View>(null);<Viewref={ref}syle={{width: 500,height: 500,justifyContent: "center",alignItems: "center"}}><Canvasstyle={{width: 200,height: 200}}><Fillcolor={"orange"}/></Canvas><Text>Some random text</Text></View>
If you were to take an snapshot of this view, you would see a blank space where the Canvas element is located, in order to work around this issue you'd have to take screenshots of the Canvas element periodically and render the given image somewhere else, for this instance in my code I have an entire featureless copy of my root layout hidden behind the actual app so I can display the contents of the Canvas before a snapshot is actually taken.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there and thanks for the amazing work on this project! I wonder if it's possible for the
makeImageSnapshot
function to capture the contents of nested canvas elements, as of now snapshoting an image with this function would return an image where theCanvas
is as a blank space. Lets see the following example:If you were to take an snapshot of this view, you would see a blank space where the
Canvas
element is located, in order to work around this issue you'd have to take screenshots of theCanvas
element periodically and render the given image somewhere else, for this instance in my code I have an entire featureless copy of my root layout hidden behind the actual app so I can display the contents of the Canvas before a snapshot is actually taken.Beta Was this translation helpful? Give feedback.
All reactions