@marktiderman/genesis-ui-native
3.18.1Foundation · CoreessentialReact Native components (NativeWind v4-5). Use in Expo / RN surfaces.
Genesis React Native components and screen layouts for Expo apps (NativeWind). Every component is listed in the component reference.
Some components draw better with a native module your app may or may not have. This package never `require()`s one itself: you import what you installed and pass it once, near the root, and every component falls back to plain React Native for whatever you leave out. (`GenesisNativeApp` from `@marktiderman/genesis-native` takes the same object as its `modules` prop.)
pnpm add @marktiderman/genesis-ui-nativeComponents (138)
- AppleSignInButton
Apple's branded button, full width. Renders nothing off iOS.
- AuthBranding
- AuthForm
- AuthScreen
- Box
- BrandExtensionsProvider
- DashboardPage
- DetailPage
- DocumentPage
- FormPage
- GenesisModulesProvider
Pass the optional native modules the app has installed. Nested providers merge: an inner one adds to or replaces what an outer one gave. Define the `modules` object once at module scope (as the starter's `src/lib/native-modules.ts` does)...
- Grid
- InboxPage
- Inline
- NativeAccordion
- NativeAccordionContent
- NativeAccordionItem
- NativeAccordionTrigger
- NativeAlert
- NativeAlertDescription
- NativeAlertTitle
- NativeAvatar
- NativeBadge
- NativeBanner
- NativeBulkBar
- NativeButton
- NativeButtonGroup
- NativeCalendar
- NativeCard
- NativeCardTitle
- NativeCarousel
- NativeChartContainer
- NativeCheckbox
- NativeChip
- NativeChipGroup
- NativeChoiceCard
- NativeCombobox
- NativeComposerBar
- NativeContextMenu
- NativeDatePicker
- NativeDialog
- NativeDialogContent
- NativeDialogDescription
- NativeDialogFooter
- NativeDialogHeader
- NativeDialogTitle
- NativeDrawer
- NativeDropdownMenu
- NativeDropdownMenuContent
- NativeDropdownMenuItem
- NativeDropdownMenuTrigger
- NativeEmptyState
- NativeFollowUpList
- NativeFullScreenModalBeta
- NativeGalleryCard
- NativeGalleryGrid
- NativeGlassSurface
- NativeHeaderCard
- NativeHeadlineNumbers
- NativeIcon
- NativeImage
- NativeInlineAlert
- NativeInput
- NativeInputGroup
- NativeInputOTP
- NativeLabel
- NativeLightbox
- NativeListItem
- NativeLiveIndicator
- NativeLoadingState
- NativeNumberInput
- NativePagination
- NativePasswordToggleField
- NativePopover
- NativePopoverContent
- NativePopoverTrigger
- NativeProgress
- NativeRadioGroup
- NativeRadioGroupItem
- NativeRangeSlider
- NativeRating
- NativeReadinessChip
- NativeRefreshControl
- NativeResourceSettingsPage
- NativeResponsesToolbar
- NativeRowActions
- NativeSearchBar
- NativeSectionListHeader
- NativeSegmentedControl
- NativeSelect
- NativeSelectContent
- NativeSelectItem
- NativeSelectTrigger
- NativeSeparator
- NativeSettingsRow
- NativeShareSheet
- NativeSheetBeta
- NativeSheetProviderBeta
Opts every `NativeSheet` below it into `@gorhom/bottom-sheet` and mounts the library's `BottomSheetModalProvider`. A module missing any export the sheet needs is reported with `console.error` and ignored, so sheets fall back to the nativ...
- NativeSkeleton
- NativeSlider
- NativeSortableList
- NativeStatCard
- NativeStatusBadge
- NativeStepper
- NativeSummaryCard
- NativeSwipeRow
- NativeSwitch
- NativeTabBar
- NativeTabs
- NativeTabsContent
- NativeTabsList
- NativeTabsTrigger
- NativeText
- NativeTextarea
- NativeThreadList
A conversation's list. See the module docs.
- NativeTierBadge
- NativeTimePicker
- NativeToastProvider
- NativeToggle
- NativeToggleRow
- NativeTooltip
- NativeTooltipContent
- NativeTooltipTrigger
- NativeUserAvatar
- NativeWhatsNewSheet
- NativeWorkspaceSwitcher
- NativeZoomablePhoto
The page: iOS's zooming scroll view, or Android's pinch and pan.
- NavBarSaveButton
- NavBarSearchBar
Inline search input meant to occupy the title slot on a search results screen. For a sticky search-below-the-header pattern, prefer the standalone <NativeSearchBar> primitive.
- NavBarTitle
- NotificationsPage
- ScreenContainer
- SettingsPage
- SettingsSubPage
- SocialAuthRow
- Stack
- TabBarVisibilityProvider
Holds whether the tab bar is hidden, for the tab navigator it wraps.
- ThreadPage
Hooks (17)
- useGenesisExtension
Read an extension scale by key. Returns `undefined` when the provider isn't mounted OR when the key isn't declared on the brand. The return type follows the consumer's augmented `BrandExtensions[K]`.
- useGenesisModules
The modules given to the nearest `GenesisModulesProvider`; `{}` without one.
- useHaptics
A function that plays a haptic through the app's `GenesisModules.haptics`. Stable across renders.
- useHideTabBar
Hides the tab bar while this screen is focused, and shows it again when it blurs or unmounts. Pass `false` to keep it (a screen that hides it only in one mode). Outside a `TabBarVisibilityProvider` it does nothing.
- useKeyboardScroll
The app's keyboard-aware scroll view, or null when none was provided.
- useKeyboardSticky
The app's keyboard-riding view for a bottom bar, or null when none was provided (or no scroll view to go with it).
- useKeyboardToolbar
The app's keyboard toolbar, or null when none was provided (or no scroll view to go with it).
- useLiquidGlass
expo-glass-effect's `GlassView` when Liquid Glass can be drawn here, else `null`.
- useMotion
- usePressFeedback
- useReducedMotion
- useReduceTransparency
True while the user has Reduce Transparency on (iOS), `null` until the first answer. Always false elsewhere, and on a runtime that can't say.
- useTabBarHidden
Whether a screen has hidden the tab bar: for chrome that sits above it (a floating bar, a mini player).
- useThemeMode
- useThemeRoles
- useThreadJump
- useToast
Other exports (64)
alertVariants · animateMotion · appleProvider · badgeTextVariants · badgeVariants · buttonTextVariants · buttonVariants · cn · composeHeaderOptions · confirmDiscardChanges · createPlaceExit · DEFAULT_GALLERY_RATIO · defaultNativeLightboxLabels · defaultStickyHeaderOffset · ForgotPasswordLink · formatInboxTime · FULL_SCREEN_DARK · GALLERY_DEFAULTS · galleryItemRatio · getInboxPageStackOptions · getNotificationsPageStackOptions · getSettingsPageStackOptions · getSettingsSubPageStackOptions · getThreadPageStackOptions · googleProvider · iosCompactNavigationBarHeight · isNativeIconName · JUMP_SETTLE_MS · justifyRows · KEYBOARD_TOOLBAR_HEIGHT · KeyboardScrollProvider · LIGHTBOX_DISMISS_DISTANCE · LIGHTBOX_DISMISS_VELOCITY · LIGHTBOX_DOUBLE_TAP_MS · LIGHTBOX_MAX_ZOOM · lightboxPanLimit · lightboxPinchScale · lightboxShouldDismiss · lightboxTouchDistance · motionSpring · motionTiming · NATIVE_ICON_NAMES · NativeCardContent · NativeCardDescription · NativeCardFooter · NativeCardHeader · NativeListItemDivider · NativeNoFeaturesFound · NativeNoFeedbackFound · NativeNoSearchResults · NativeSheetScrollView · nextRating · playHaptic · readReceiptFor · sentBubbleColor · SF_SYMBOLS · showInboxActions · spaceScale · spacingClass · textVariants · THREAD_AT_BOTTOM_POINTS · threadListMode · threadNearBottom · toggleVariants
And 118 types.
Components (118)
- Box
- GenesisModulesProvider
Pass the optional native modules the app has installed. Nested providers merge: an inner one adds to or replaces what an outer one gave. Define the `modules` object once at module scope (as the starter's `src/lib/native-modules.ts` does)...
- Grid
- Inline
- NativeAccordion
- NativeAccordionContent
- NativeAccordionItem
- NativeAccordionTrigger
- NativeAlert
- NativeAlertDescription
- NativeAlertTitle
- NativeAvatar
- NativeBadge
- NativeBanner
- NativeBulkBar
- NativeButton
- NativeButtonGroup
- NativeCalendar
- NativeCard
- NativeCardTitle
- NativeCarousel
- NativeChartContainer
- NativeCheckbox
- NativeChip
- NativeChipGroup
- NativeChoiceCard
- NativeCombobox
- NativeComposerBar
- NativeContextMenu
- NativeDatePicker
- NativeDialog
- NativeDialogContent
- NativeDialogDescription
- NativeDialogFooter
- NativeDialogHeader
- NativeDialogTitle
- NativeDrawer
- NativeDropdownMenu
- NativeDropdownMenuContent
- NativeDropdownMenuItem
- NativeDropdownMenuTrigger
- NativeEmptyState
- NativeFollowUpList
- NativeFullScreenModalBeta
- NativeGalleryCard
- NativeGalleryGrid
- NativeGlassSurface
- NativeHeaderCard
- NativeHeadlineNumbers
- NativeIcon
- NativeImage
- NativeInlineAlert
- NativeInput
- NativeInputGroup
- NativeInputOTP
- NativeLabel
- NativeLightbox
- NativeListItem
- NativeLiveIndicator
- NativeLoadingState
- NativeNumberInput
- NativePagination
- NativePasswordToggleField
- NativePopover
- NativePopoverContent
- NativePopoverTrigger
- NativeProgress
- NativeRadioGroup
- NativeRadioGroupItem
- NativeRangeSlider
- NativeRating
- NativeReadinessChip
- NativeRefreshControl
- NativeResourceSettingsPage
- NativeResponsesToolbar
- NativeRowActions
- NativeSearchBar
- NativeSectionListHeader
- NativeSegmentedControl
- NativeSelect
- NativeSelectContent
- NativeSelectItem
- NativeSelectTrigger
- NativeSeparator
- NativeSettingsRow
- NativeShareSheet
- NativeSheetBeta
- NativeSheetProviderBeta
Opts every `NativeSheet` below it into `@gorhom/bottom-sheet` and mounts the library's `BottomSheetModalProvider`. A module missing any export the sheet needs is reported with `console.error` and ignored, so sheets fall back to the nativ...
- NativeSkeleton
- NativeSlider
- NativeSortableList
- NativeStatCard
- NativeStatusBadge
- NativeStepper
- NativeSummaryCard
- NativeSwipeRow
- NativeSwitch
- NativeTabBar
- NativeTabs
- NativeTabsContent
- NativeTabsList
- NativeTabsTrigger
- NativeText
- NativeTextarea
- NativeThreadList
A conversation's list. See the module docs.
- NativeTierBadge
- NativeTimePicker
- NativeToastProvider
- NativeToggle
- NativeToggleRow
- NativeTooltip
- NativeTooltipContent
- NativeTooltipTrigger
- NativeUserAvatar
- NativeWhatsNewSheet
- NativeWorkspaceSwitcher
- NativeZoomablePhoto
The page: iOS's zooming scroll view, or Android's pinch and pan.
- Stack
Hooks (4)
- useGenesisModules
The modules given to the nearest `GenesisModulesProvider`; `{}` without one.
- useLiquidGlass
expo-glass-effect's `GlassView` when Liquid Glass can be drawn here, else `null`.
- useReduceTransparency
True while the user has Reduce Transparency on (iOS), `null` until the first answer. Always false elsewhere, and on a runtime that can't say.
- useToast
Other exports (39)
alertVariants · badgeTextVariants · badgeVariants · buttonTextVariants · buttonVariants · DEFAULT_GALLERY_RATIO · defaultNativeLightboxLabels · FULL_SCREEN_DARK · GALLERY_DEFAULTS · galleryItemRatio · isNativeIconName · justifyRows · LIGHTBOX_DISMISS_DISTANCE · LIGHTBOX_DISMISS_VELOCITY · LIGHTBOX_DOUBLE_TAP_MS · LIGHTBOX_MAX_ZOOM · lightboxPanLimit · lightboxPinchScale · lightboxShouldDismiss · lightboxTouchDistance · NATIVE_ICON_NAMES · NativeCardContent · NativeCardDescription · NativeCardFooter · NativeCardHeader · NativeListItemDivider · NativeNoFeaturesFound · NativeNoFeedbackFound · NativeNoSearchResults · NativeSheetScrollView · nextRating · SF_SYMBOLS · spaceScale · spacingClass · textVariants · THREAD_AT_BOTTOM_POINTS · threadListMode · threadNearBottom · toggleVariants
And 74 types.
Components (18)
- NativeConflictSheetBeta
The phone's ConflictSheet: when a save met someone else's change, a bottom sheet shows their value above the one this person tried to save, for each field where they differ, then "Take theirs" or "Keep mine". NativeRecordView's settings ...
- NativeCustomView
- NativeDataFilters
- NativeDataPageShell
- NativeDetailPanel
- NativeEmptyState
- NativeFieldArrayRenderer
A field of `type: "array"`: one card per item, each with the field's `arrayFields`, and Add / Remove within `arrayMin` and `arrayMax`.
- NativeFileUploadField
A field of `type: "file"` or `"image"`: a button that opens the system picker, then the picked files with their size and a Remove each.
- NativeRecordPeek
- NativeRecordView
One record's screen, from its record view (defineRecordView):
- NativeRelationField
A field of `type: "relation"`: the linked resource's rows through the data provider, searched and paged on the server. The same picker NativeResourceView's form uses (NativeLinkPicker), fed from the field's `relation`.
- NativeResourceForm
- NativeResourceFormFieldRenderer
- NativeResourceFormSheet
- NativeResourcePage
- NativeResourceView
A native list screen from a view:
- NativeResourceWorkspace
- NativeWizardForm
A form in steps (genesis-core's `useWizard`): the step's fields, its progress, Back and Next, and Create or Save on the last step.
Hooks (6)
- useDisplayCell
Draw one value: the empty mark for no value or a value the row (or viewer) hides (`when`), else its hint's renderer.
- useDisplayTimeZones
The clocks for timestamps: the nearest provider's, else the device's for both.
- useNativeCustomView
A native custom view's data and states, headless. `<NativeCustomView>` calls it and draws the states.
- useNativeListMessages
The list words: the app's catalogue over the English.
- useNativeResourceView
- useNativeResourceViewMessages
Other exports (40)
allowed · dateToDay · dayToDate · DEFAULT_MAX_PAGES · defaultNativeListMessages · defaultNativeRecordViewMessages · defaultNativeResourceViewMessages · defaultNativeResourceWorkspaceMessages · DisplayRenderersProvider · displayText · DisplayTimeZonesProvider · formatDay · formatInstant · formFieldsFor · getNativeRecordViewStackOptions · getNativeResourceWorkspaceStackOptions · NATIVE_VIEW_TYPES · nativeDisplayRenderers · NativeRecordViewMenu · NativeResourceBoard · NativeResourceCalendar · NativeResourceViewMessagesProvider · NativeResourceWorkspaceMenu · nativeSwitchableTypes · NativeViewFilterControls · NativeViewSegments · NativeViewTypeSwitcher · openableUrl · parseSettingNumber · resolveZone · rowItem · screenValues · SEARCH_DEBOUNCE_MS · sectionsFor · SEGMENTED_SECTIONS_MAX · serverSort · serverSorts · swipeActionsFor · validateValues · writableValues
And 29 types.
Components (1)
- BrandExtensionsProvider
Hooks (8)
- useGenesisExtension
Read an extension scale by key. Returns `undefined` when the provider isn't mounted OR when the key isn't declared on the brand. The return type follows the consumer's augmented `BrandExtensions[K]`.
- useHaptics
A function that plays a haptic through the app's `GenesisModules.haptics`. Stable across renders.
- useMotion
- usePressFeedback
- useReducedMotion
- useThemeMode
- useThemeRoles
- useThreadJump
Other exports (6)
animateMotion · JUMP_SETTLE_MS · motionSpring · motionTiming · playHaptic · sentBubbleColor
And 14 types.
Components (19)
- AppleSignInButton
Apple's branded button, full width. Renders nothing off iOS.
- AuthBranding
- AuthForm
- AuthScreen
- DashboardPage
- DetailPage
- DocumentPage
- FormPage
- InboxPage
- NavBarSaveButton
- NavBarSearchBar
Inline search input meant to occupy the title slot on a search results screen. For a sticky search-below-the-header pattern, prefer the standalone <NativeSearchBar> primitive.
- NavBarTitle
- NotificationsPage
- ScreenContainer
- SettingsPage
- SettingsSubPage
- SocialAuthRow
- TabBarVisibilityProvider
Holds whether the tab bar is hidden, for the tab navigator it wraps.
- ThreadPage
Hooks (5)
- useHideTabBar
Hides the tab bar while this screen is focused, and shows it again when it blurs or unmounts. Pass `false` to keep it (a screen that hides it only in one mode). Outside a `TabBarVisibilityProvider` it does nothing.
- useKeyboardScroll
The app's keyboard-aware scroll view, or null when none was provided.
- useKeyboardSticky
The app's keyboard-riding view for a bottom bar, or null when none was provided (or no scroll view to go with it).
- useKeyboardToolbar
The app's keyboard toolbar, or null when none was provided (or no scroll view to go with it).
- useTabBarHidden
Whether a screen has hidden the tab bar: for chrome that sits above it (a floating bar, a mini player).
Other exports (18)
appleProvider · composeHeaderOptions · confirmDiscardChanges · createPlaceExit · defaultStickyHeaderOffset · ForgotPasswordLink · formatInboxTime · getInboxPageStackOptions · getNotificationsPageStackOptions · getSettingsPageStackOptions · getSettingsSubPageStackOptions · getThreadPageStackOptions · googleProvider · iosCompactNavigationBarHeight · KEYBOARD_TOOLBAR_HEIGHT · KeyboardScrollProvider · readReceiptFor · showInboxActions
And 30 types.
Other exports (1)
cn
Other exports (1)
lucideIcons