- Android
- iOS
- Web
Page
Render a screen surface with optional keyboard handling, safe-area insets and viewport sizing.
Engine API NPagenayan-ui/components
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| style | ComponentStyleProp | Optional | |
| fillViewport | boolean | Optional | |
| viewportStyle | React.CSSProperties | Optional | |
| surface | Omit<ComponentsRootProps, "style" | "children" | "stylesheet"> | Optional | |
| active | boolean | Optional | Pause the surface while its screen is inactive. |
| keyboard | boolean | Optional | |
| safeArea | boolean | Optional | Protect the end of the page's scroll content. Defaults to true on native. |
| showsVerticalScrollIndicator | boolean | Optional | Hide the page's root indicator without disabling scrolling. |
| background | string | Optional | Surface clear color; useful for opaque modal content. |
| onContentSizeChange | ((width: number, height: number) => void) | Optional | |
| onError | ((error: Error) => void) | Optional |
React Native API
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| style | ComponentStyleProp | Optional | |
| fillViewport | boolean | Optional | |
| viewportStyle | ViewStyle | Optional | |
| surface | Omit<ComponentsRootProps, "style" | "children" | "stylesheet"> | Optional | |
| active | boolean | Optional | Pause the surface while its screen is inactive. |
| keyboard | boolean | Optional | |
| safeArea | boolean | Optional | Protect the end of the page's scroll content. Defaults to true on native. |
| showsVerticalScrollIndicator | boolean | Optional | Hide the page's root indicator without disabling scrolling. |
| background | string | Optional | Surface clear color; useful for opaque modal content. |
| onContentSizeChange | ((width: number, height: number) => void) | Optional | |
| onError | ((error: Error) => void) | Optional |