Skip to content
ankhoragePublic

Latest commit

 

History

1,911 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZORA

license: MIT npm: v27.11.2 runtime: bun typescript: strict eslint: checked prettier: checked build: checked tests: configured paradox: warnings

Provides opinionated React Native and React Native Web UI components, theme primitives, registries, and reader surfaces built on @ankhorage/surface.

Give independently released applications a reusable, cross-platform presentation layer with explicit public entrypoints for components, themes, registries, readers, and authoring controls.

Usage

Basic 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 7 additional examples. See the generated documentation for the complete set.

Documentation

Open ./paradox/index.html locally in your browser to browse the complete documentation.

Contributors

Donation

If this project is useful to you, you can support its continued development.

Support @ankhorage

Releases

Packages

Used by

Contributors

Languages