BlueWallet/screen/ActionSheet.ios.ts
2026-03-16 21:13:23 +00:00

17 lines
491 B
TypeScript

// ActionSheet.ios.ts
import { ActionSheetIOS } from 'react-native';
import { ActionSheetOptions, CompletionCallback } from './ActionSheet.common';
export default class ActionSheet {
static showActionSheetWithOptions(options: ActionSheetOptions, completion: CompletionCallback): void {
const iosOptions = {
...options,
};
if (options.anchor) {
iosOptions.anchor = options.anchor;
}
ActionSheetIOS.showActionSheetWithOptions(iosOptions, completion);
}
}