Fix ViewShot dropping frames and stickers on Android by grouping all layers into a single composited parent View

This commit is contained in:
2026-06-01 10:08:55 +02:00
parent ba8248fcc2
commit e069fef170
2 changed files with 25 additions and 22 deletions
+1
View File
@@ -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>
); );
+2
View File
@@ -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) */}