Update ActionSheet.ios.ts

This commit is contained in:
Marcos Rodriguez Velez 2024-05-31 19:52:40 -04:00
parent c41d8314e1
commit 8c68b00120
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -8,8 +8,10 @@ export default class ActionSheet {
InteractionManager.runAfterInteractions(() => {
const iosOptions = {
...options,
anchor: options.anchor,
};
if (options.anchor) {
iosOptions.anchor = options.anchor;
}
ActionSheetIOS.showActionSheetWithOptions(iosOptions, completion);
});
}