Skip to content

Commit 3fb0359

Browse files
authored
chore(πŸ“š): minor doc update (#3272)
1 parent 845bd24 commit 3fb0359

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žapps/docs/docs/snapshot-views.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ If the view is optimized away, `makeImageFromView` will crash or return the wron
1616

1717
::::info
1818

19+
### Example
1920

20-
21-
```tsx
21+
```tsx twoslash
2222
import { useState, useRef } from "react";
2323
import { View, Text, PixelRatio, StyleSheet, Pressable } from "react-native";
2424
import type { SkImage } from "@shopify/react-native-skia";

β€Žpackages/skia/src/skia/core/Image.tsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const makeImageFromView = <
2929
| number
3030
| React.Component<unknown, unknown>
3131
| React.ComponentClass<unknown>
32+
| null
3233
>(
3334
viewRef: React.RefObject<T>,
3435
callback:

0 commit comments

Comments
Β (0)