SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

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
Z
Zeya Peng committed
22477787e4c257ee4f8a6edf69634107f8d80877
Parent: 39ac654
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 4/16/2026, 3:53:31 PM