Genesis
@beta

NativeLoadingState

LoadingState — a centred spinner for a screen (or part of one) that is waiting: a redirect while the session loads, the first fetch of a page. Use it instead of a hand-rolled `<View><ActivityIndicator /></View>`: the spinner takes the theme tint, screen readers hear one "Loading" progress bar (or your `label`), and the full-screen form sits inside the safe area on the screen background. For content-shaped placeholders (a list about to appear) use `NativeSkeleton`; for known progress use `NativeProgress`. if (!session) return <NativeLoadingState />; // whole screen <NativeLoadingState fullScreen={false} label="Loading more" size="small" /> `ScreenContainer loading` renders the inline form in place of its body.

packages/ui-native/src/components/loading-state.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { NativeLoadingState } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NativeLoadingState

PropTypeDefaultDescription
accessibilityLabelstring—What screen readers announce when no `label` is shown. Default `"Loading"`.
classNamestring—
color____ColorValue_Internal—Spinner color. Defaults to the theme tint.
fullScreenbooleantrue`true` (default): fill the screen on the theme background, inside the safe area. `false`: a padded, centred block that fills its parent, for a screen body, a section or a list footer.
labelstring—Text shown under the spinner. It is also what screen readers announce.
safeAreaEdgesNativeLoadingStateEdge[]["top", "bottom", "left", "right"]Safe-area edges when `fullScreen`. Default all four.
sizeenumlargeSpinner size. Default `"large"`.
testIDstringloading-statetestID on the root; the spinner is `${testID}-spinner`, the label `${testID}-label`. Default `"loading-state"`.