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
The `index` parameter in the `openPreview` function specifies the initial media item to display. It is a zero-based index, meaning that `0` will display the first item in the `MediaPreview` array.
69
74
70
-
## `cropConfig`
75
+
## `previewConfig`
71
76
72
77
### [`language`](/config/#language)
73
78
79
+
see [`language`](/config/#language)
80
+
81
+
### `onLongPress`
82
+
83
+
`onLongPress` is a callback function that is called when a long press is detected on the media item. It is a function that takes an index as an argument and returns void.
84
+
85
+
```typescript
86
+
onLongPress: (index:number) =>void
87
+
```
88
+
74
89
## Additional Information
75
90
76
91
- Ensure that the media paths are accessible and correctly formatted.
0 commit comments