fix: resolve import paths and module loading errors

This commit is contained in:
2026-08-07 12:41:04 +02:00
parent 43b6467efb
commit 11f0d16515
15 changed files with 388 additions and 14 deletions
+15 -2
View File
@@ -1,3 +1,16 @@
import { requireNativeModule } from "expo-modules-core";
import { requireOptionalNativeModule } from "expo-modules-core";
export default requireNativeModule("WatchConnectivity");
let WatchConnectivity: any;
WatchConnectivity = requireOptionalNativeModule("WatchConnectivity") ?? {
isSupported: async () => false,
isPaired: async () => false,
isWatchAppInstalled: async () => false,
isReachable: async () => false,
sendWorkoutPlan: async () => ({ error: "WatchConnectivity native module not available" }),
sendWorkoutCompletion: async () => ({ error: "WatchConnectivity native module not available" }),
getApplicationContext: async () => null,
updateApplicationContext: async () => {},
};
export default WatchConnectivity;