TgfxViewProps
Props for the native tgfx canvas view.
The declarative React tree (<Canvas> + <Rect> / <Circle> / <Path> /
<TgfxImage> / <Text> ...) is reconciled and compiled into a binary "draw
program" that is handed to the native side through
TgfxViewMethods.setScene. The shared C++ engine reads it once per
structural change and replays it through tgfx on the platform's display-link
/ choreographer callback.
Extends
HybridViewProps
Properties
inHierarchy
inHierarchy: boolean;Android composition mode: true draws the canvas inside the view hierarchy
(a TextureView) so transparency and transforms behave like any other view;
false gives it its own compositor layer, which is faster. Read once, when
the native view is created.
opaque
opaque: boolean;Composite without an alpha channel, so the layer needs no blending and the engine clears to opaque black instead of transparent.