mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
FIX: Wait for transitions to finish before showing sheet
This commit is contained in:
parent
c1af945439
commit
bf472ab6a7
@ -1,7 +1,9 @@
|
||||
import { ActionSheetIOS } from 'react-native';
|
||||
import { ActionSheetIOS, InteractionManager } from 'react-native';
|
||||
|
||||
export default class ActionSheet {
|
||||
static showActionSheetWithOptions(options, completion) {
|
||||
ActionSheetIOS.showActionSheetWithOptions(options, completion);
|
||||
InteractionManager.runAfterInteractions(() => {
|
||||
ActionSheetIOS.showActionSheetWithOptions(options, completion);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,9 @@
|
||||
import { Alert } from 'react-native';
|
||||
import { Alert, InteractionManager } from 'react-native';
|
||||
|
||||
export default class ActionSheet {
|
||||
static showActionSheetWithOptions(options) {
|
||||
Alert.alert(options.title, options.message, options.buttons, { cancelable: true });
|
||||
InteractionManager.runAfterInteractions(() => {
|
||||
Alert.alert(options.title, options.message, options.buttons, { cancelable: true });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user