Files
react-native/scripts
Zeya Peng 22477787e4 Android bitmap snapshot capture and display (#56460)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56460

## Changelog:

[Internal] [Added] - Android bitmap snapshot capture and display

Implement the Android side of view transition bitmap snapshots.

**`ViewTransitionSnapshotManager`** (new Kotlin class):
Manages the full snapshot lifecycle as a `UIManagerListener`. Captures bitmaps
on the UI thread, maps them from source to target pseudo-element tags,
re-applies after mount cycles (since views may be recreated), and self-cleans
when views are deleted.

**JNI bridge:**
`FabricUIManagerBinding` → `FabricMountingManager` → `FabricUIManager` JNI
delegates to the snapshot manager.

**`SurfaceMountingManager.applyViewSnapshot`:** sets bitmap as view background
using the KTX `Bitmap.toDrawable` extension.

Reviewed By: sammy-SC, NickGerleman

Differential Revision: D99173446

fbshipit-source-id: 5efdd0d9ef064f24222bbbc07e5b32b6aac19d0b
2026-04-16 08:53:31 -07:00
..