Skip to content

Commit 47fff47

Browse files
committed
chore: add jsdocs
1 parent 0e75d81 commit 47fff47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/uikit-react-native/src/contexts/SBUHandlersCtx.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
import React from 'react';
22

33
export interface SBUHandlers {
4+
/**
5+
* Callback function to handle opening a URL.
6+
* This is triggered when a URL needs to be opened.
7+
*/
48
onOpenURL: (url: string) => void;
9+
10+
/**
11+
* Callback function to handle opening a file URL.
12+
* This is triggered when a file URL needs to be opened.
13+
*
14+
* Note that this function is also called redundantly
15+
* when `onPressMediaMessage` handler is triggered by clicking on media messages containing images, videos, or audio.
16+
*/
517
onOpenFileURL: (url: string) => void;
618
}
719

0 commit comments

Comments
 (0)