createBoundaryComponent() wraps a custom component with the boundary system.
TSX
The wrapped component keeps its original props and accepts boundary props such as id, group, anchor, scaleMode, target, method, enabled, handoff, and escapeClipping.
Use this when a custom component should behave like Transition.Boundary without adding an extra wrapper view around it.