feat: add anchor option for iPads (#155)

This commit is contained in:
Kashish Grover authored and GitHub committed 2020-02-04 05:54:18 -06:00
1 parent 6fa494f9de
commit 370e6e855f
2 files changed
+2

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ export default class ActionSheet extends React.Component<Props> {
// A null title or message on iOS causes a crash
title: dataOptions.title || undefined,
message: dataOptions.message || undefined,
anchor: dataOptions.anchor || undefined,
};
ActionSheetIOS.showActionSheetWithOptions(iosOptions, onSelect);
}
+1
View File
@@ -13,6 +13,7 @@ export interface ActionSheetIOSOptions {
tintColor?: string;
cancelButtonIndex?: number;
destructiveButtonIndex?: number;
anchor?: number;
}
// for Android or Web