@@ -1,8 +1,7 @@
11import { NativeModules, Platform } from "react-native";
22
3−export const alertImpl = (style, title, message, buttons) => () => {
3+export const alertImpl = (style, title, message, buttons) => {
44 if (Platform.OS !== "macos") return;
5− // Try our native module first
65 const mod = NativeModules.MacOSAlertModule;
76 if (mod && mod.show) {
87 mod
@@ -10,7 +9,6 @@ export const alertImpl = (style, title, message, buttons) => () => {
109 .catch((e) => console.error("[macosAlert]", e));
1110 return;
1211 }
13− // Fallback: RN Alert (uses NativeAlertManager internally on macOS)
1412 try {
1513 const { Alert } = require("react-native");
1614 const mapped = buttons.map((b) => ({ text: b }));