mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Merge pull request #23072 from iRoachie/rnmu-toolbar
feat(react-native-material-ui): Add onRightElementPress callback info
This commit is contained in:
+7
-1
@@ -432,6 +432,12 @@ export interface ToolBarRightElement {
|
||||
menu?: {icon: string, labels: string[]};
|
||||
}
|
||||
|
||||
export interface RightElementPressEvent {
|
||||
action: string;
|
||||
index: number;
|
||||
result?: any;
|
||||
}
|
||||
|
||||
export interface ToolbarProps {
|
||||
isSearchActive?: boolean;
|
||||
size?: number;
|
||||
@@ -443,7 +449,7 @@ export interface ToolbarProps {
|
||||
searchable?: Searchable;
|
||||
onPress?(): void;
|
||||
onLeftElementPress?(): void;
|
||||
onRightElementPress?(): void;
|
||||
onRightElementPress?(e: RightElementPressEvent): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user