@napps/nodes. Use them as JSX
elements inside a React component.
Supported nodes
Common properties
Every intrinsic node accepts these React properties:
Only container and content nodes render
children: box, column, row, text, touchable,
scrollable, pager, bottomSheet, and gestureDetector. The leaf nodes img, video,
button, and textInput do not render children. Use their documented properties, such as src,
text, or value, instead.
Node-specific properties are documented on each page. Properties not listed for a node are not part
of its typed JSX contract.
Layout guidance
- Use
columnandrowto express the primary layout direction. - Use
boxwhen children should stack on top of one another. - Use
paddingonscrollableandpagerfor content-edge spacing. Margins reduce the usable scroll area. - For pressed or gesture-driven feedback, use
gestureDetectorwith shared values andanimatedProps. For a non-animated selected state, update the style directly from React state. - Keep
gestureDetectoraround the smallest subtree that needs gesture input.