mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
16 lines
536 B
TypeScript
16 lines
536 B
TypeScript
// ActionSheet.ios.ts
|
|
import { ActionSheetIOS, InteractionManager } from 'react-native';
|
|
import { ActionSheetOptions, CompletionCallback } from './ActionSheet.common';
|
|
|
|
export default class ActionSheet {
|
|
static showActionSheetWithOptions(options: ActionSheetOptions, completion: CompletionCallback): void {
|
|
InteractionManager.runAfterInteractions(() => {
|
|
const iosOptions = {
|
|
...options,
|
|
anchor: options.anchor,
|
|
};
|
|
ActionSheetIOS.showActionSheetWithOptions(iosOptions, completion);
|
|
});
|
|
}
|
|
}
|