Temporarily remove ViewShot to isolate native Android crash
This commit is contained in:
@@ -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 && (
|
||||||
|
|||||||
Reference in New Issue
Block a user