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 ──
|
||||
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 && (
|
||||
|
||||
Reference in New Issue
Block a user