Merge pull request #5801 from BlueWallet/action

FIX: Call dismiss on ActionSheet to avoid duplicate firing
This commit is contained in:
GLaDOS 2023-11-02 09:02:08 +00:00 committed by GitHub
commit bd986d580e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import { ActionSheetIOS, InteractionManager } from 'react-native';
export default class ActionSheet {
static showActionSheetWithOptions(options, completion) {
ActionSheetIOS.dismissActionSheet();
InteractionManager.runAfterInteractions(() => {
ActionSheetIOS.showActionSheetWithOptions(options, completion);
});