Native Animated Nodes Manager
This is the main class that coordinates how native animated JS implementation drives UI changes.
It implements a management interface for animated nodes graph as well as implements a graph traversal algorithm that is run for each animation frame.
For each animation frame we visit animated nodes that might've been updated as well as their children that may use parent's values to update themselves. At the end of the traversal algorithm we expect to reach a special type of the node: PropsAnimatedNode that is then responsible for calculating property map which can be sent to native view hierarchy to update the view.
IMPORTANT: This class should be accessed only from the UI Thread
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Initialize event listeners for Fabric UIManager or non-Fabric UIManager, exactly once.
Link copied to clipboard
Called on every time an event is dispatched using EventDispatcher.dispatchEvent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Animation loop performs two BFSes over the graph of animated nodes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun startAnimatingNode(animationId: Int, animatedNodeTag: Int, animationConfig: ReadableMap, @Nullable endCallback: Callback)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard