Fix ViewShot dropping frames and stickers on Android by grouping all layers into a single composited parent View
This commit is contained in:
@@ -19,6 +19,7 @@ export default function FrameOverlay({ frameAsset }: FrameOverlayProps) {
|
|||||||
source={frameAsset}
|
source={frameAsset}
|
||||||
style={styles.frameImage}
|
style={styles.frameImage}
|
||||||
resizeMode="cover"
|
resizeMode="cover"
|
||||||
|
fadeDuration={0}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -445,6 +445,7 @@ export default function PreviewScreen({
|
|||||||
style={styles.viewShotContainer}
|
style={styles.viewShotContainer}
|
||||||
collapsable={false}
|
collapsable={false}
|
||||||
>
|
>
|
||||||
|
<View style={StyleSheet.absoluteFill} collapsable={false}>
|
||||||
{renderCollageView()}
|
{renderCollageView()}
|
||||||
|
|
||||||
{/* Frame Overlay */}
|
{/* Frame Overlay */}
|
||||||
@@ -470,6 +471,7 @@ export default function PreviewScreen({
|
|||||||
onUpdate={handleStickerUpdate}
|
onUpdate={handleStickerUpdate}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
</View>
|
||||||
</ViewShot>
|
</ViewShot>
|
||||||
|
|
||||||
{/* Sticker Tray (outside ViewShot — not captured) */}
|
{/* Sticker Tray (outside ViewShot — not captured) */}
|
||||||
|
|||||||
Reference in New Issue
Block a user