Merge pull request #23072 from iRoachie/rnmu-toolbar

feat(react-native-material-ui): Add onRightElementPress callback info
This commit is contained in:
Eloy Durán
2018-01-25 08:20:50 -05:00
committed by GitHub
+7 -1
View File
@@ -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;
}
/**