Skip to content

Commit cd6749c

Browse files
chore(📚): drawOffscreen is async (#3146)
Co-authored-by: William Candillon <[email protected]>
1 parent dd870ca commit cd6749c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎apps/docs/docs/getting-started/headless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Circle, drawOffscreen, getSkiaExports, Group, makeOffscreenSurface } fr
2727
// Alternatively you can do const {Skia} = require("@shopify/react-native-skia")
2828
const {Skia} = getSkiaExports();
2929
const surface = makeOffscreenSurface(width, height);
30-
const image = drawOffscreen(surface,
30+
const image = await drawOffscreen(surface,
3131
<Group blendMode="multiply">
3232
<Circle cx={r} cy={r} r={r} color="cyan" />
3333
<Circle cx={size - r} cy={r} r={r} color="magenta" />

0 commit comments

Comments
 (0)