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 ── // ── Capture the final image ──
const captureComposite = async (): Promise<string> => { const captureComposite = async () => {
if (viewShotRef.current) {
return await viewShotRef.current.capture();
}
return currentPhoto; return currentPhoto;
}; };
@@ -359,9 +356,7 @@ export default function PreviewScreen({
activeOpacity={1} activeOpacity={1}
onPress={handleCanvasPress} onPress={handleCanvasPress}
> >
<ViewShot <View
ref={viewShotRef}
options={{ format: 'jpg', quality: 0.95 }}
style={styles.viewShotContainer} style={styles.viewShotContainer}
> >
{renderCollageView()} {renderCollageView()}
@@ -389,7 +384,7 @@ export default function PreviewScreen({
onUpdate={handleStickerUpdate} onUpdate={handleStickerUpdate}
/> />
))} ))}
</ViewShot> </View>
{/* Sticker Tray (outside ViewShot — not captured) */} {/* Sticker Tray (outside ViewShot — not captured) */}
{showStickerTray && ( {showStickerTray && (