ReviewOS

also looking at this

craft-native/craft

fix(ios): hand the page the answers native was already sending

#222
Merged glennmichael123 wants to merge fix/ios-unanswered-posts into main
18 files +597 -164
packages/react/src/index.tsmodified+8-1
Changes to packages/react/src/index.ts
@@ -127,7 +127,14 @@ export function useHaptic() {
127127 console.warn('Craft not ready');
128128 return;
129129 }
130 await craft.haptic(type);
130 try {
131 await craft.haptic(type);
132 }
133 catch (error) {
134 // Feedback: an app built with haptics off plays nothing, the same as
135 // Craft not being ready. Any other failure still reaches the caller.
136 if ((error as { code?: string } | null)?.code !== 'CAPABILITY_DISABLED') throw error;
137 }
131138 },
132139 [craft, isReady]
133140 );