Temporarily remove ViewShot to isolate native Android crash

This commit is contained in:
2026-05-31 16:12:22 +02:00
parent b55263859c
commit 17c38f051e
+3 -8
View File
@@ -184,10 +184,7 @@ export default function PreviewScreen({
}, []);
// ── Capture the final image ──
const captureComposite = async (): Promise<string> => {
if (viewShotRef.current) {
return await viewShotRef.current.capture();
}
const captureComposite = async () => {
return currentPhoto;
};
@@ -359,9 +356,7 @@ export default function PreviewScreen({
activeOpacity={1}
onPress={handleCanvasPress}
>
<ViewShot
ref={viewShotRef}
options={{ format: 'jpg', quality: 0.95 }}
<View
style={styles.viewShotContainer}
>
{renderCollageView()}
@@ -389,7 +384,7 @@ export default function PreviewScreen({
onUpdate={handleStickerUpdate}
/>
))}
</ViewShot>
</View>
{/* Sticker Tray (outside ViewShot — not captured) */}
{showStickerTray && (