diff --git a/blue_modules/notifications.js b/blue_modules/notifications.js index 411f8fae7..8a77a3d02 100644 --- a/blue_modules/notifications.js +++ b/blue_modules/notifications.js @@ -152,7 +152,7 @@ function Notifications(props) { message: loc.notifications.would_you_like_to_receive_notifications, options, cancelButtonIndex: 0, // Assuming 'no and don't ask' is still treated as the cancel action - anchor: findNodeHandle(anchor.current), + anchor: anchor ? findNodeHandle(anchor.current) : undefined, }, buttonIndex => { switch (buttonIndex) { diff --git a/screen/ActionSheet.ios.ts b/screen/ActionSheet.ios.ts index ad542c6dd..d068b3b6b 100644 --- a/screen/ActionSheet.ios.ts +++ b/screen/ActionSheet.ios.ts @@ -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); }); }