From c41d8314e1789423a0a9ef2a6093b9948a69e8b8 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Fri, 31 May 2024 19:50:48 -0400 Subject: [PATCH 1/2] FIX: Notification toggle was stopped by an undefined object --- blue_modules/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 8c68b001207333135ce71fdb76428ee1f8fc6720 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Fri, 31 May 2024 19:52:40 -0400 Subject: [PATCH 2/2] Update ActionSheet.ios.ts --- screen/ActionSheet.ios.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }); }