rn-tgfx
What this is
react-native-tgfx is a declarative GPU 2D canvas for React Native, backed by
Tencent's tgfx and built on Nitro Modules.
The JSX shape is deliberately close to @shopify/react-native-skia, but the
execution model is not:
Every scene commit compiles the React tree to a binary draw program. Between
commits, animated values live in native slots that the renderer patches on the
UI thread. A SharedValue prop or a slot-backed NodeHandle.set() costs zero
JavaScript per frame — no worklet, no re-render, no re-encode. A prop with no
slot re-encodes the scene instead.
Backends: Metal on iOS, OpenGL ES by default on Android, Vulkan opt-in
(the default; TgfxVulkan=OFF in android/gradle.properties falls back to GL, Vulkan gives 15–30% more presented FPS).
Read this first, then load one reference
Every reference is self-contained. Do not load more than the task needs.