mirror of
https://github.com/expo/react-native-action-sheet.git
synced 2026-11-14 19:11:42 -10:00
feat: add anchor option for iPads (#155)
This commit is contained in:
1 parent
6fa494f9de
commit
370e6e855f
2 files changed
+2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface ActionSheetIOSOptions {
|
||||
tintColor?: string;
|
||||
cancelButtonIndex?: number;
|
||||
destructiveButtonIndex?: number;
|
||||
anchor?: number;
|
||||
}
|
||||
|
||||
// for Android or Web
|
||||
|
||||
Reference in new issue
Block a user