@ankhorage/zora
v25.8.16
Published
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
Maintainers
Readme
@ankhorage/zora
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
Usage
CLI
Ankhorage packages expose their command-line interface through ankh. Use ankh --help to discover available package commands, or run a package command with --help for package-specific usage.
# Install the Ankhorage CLI
bun add --global @ankhorage/ankh
# Show usage information for zora
ankh zora --helpBasic App
ZORA app root with optional runtime capabilities and adaptive UI.
Enable only the runtime capabilities the app uses. toast installs the host consumed by
useToast(). bottomSheet installs the native BottomSheet host; DatePicker and TimePicker use
that host on native and automatically use Popover on web.
export default function BasicApp() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ZoraProvider
bottomSheet
initialMode="light"
theme={basicTheme}
toast={{ defaultDuration: 4000 }}
>
<AppShell header={<AppBar title="Dashboard" subtitle="Welcome to ZORA" />}>
<Screen>
<ScreenSection>
<UsageContent />
</ScreenSection>
</Screen>
</AppShell>
</ZoraProvider>
</GestureHandlerRootView>
);
}This package contains 6 additional examples. See the generated documentation for the complete set.
Generated documentation
- Interactive documentation app
- Public API reference
- Component registry
- Architecture overview
- Module relationships
- Export graph
- createPokerTrainingTableState sequence
- createZoraThemeConfig sequence
- getLegalTargets sequence
- GridInteractions sequence
- GridView sequence
- readChessPieces sequence
- resolveAvatarInitials sequence
- resolveExplorerSelection sequence
- resolveGridRulerMarks sequence
- resolveOAuthProviderIcon sequence
- resolveOAuthProviderLabel sequence
- resolveTimeGridVisibleIntervals sequence
- SelectionProvider sequence
- tryMove sequence
- useZoraTheme sequence
- validateField sequence
- validateFields sequence
- validateUploadAsset sequence
- validateValue sequence
