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
@marktiderman/genesis-ui-nativeimport { NativeLoadingState } from "@marktiderman/genesis-ui-native";react-docgen-typescript.NativeLoadingState
| Prop | Type | Default | Description |
|---|---|---|---|
| accessibilityLabel | string | — | What screen readers announce when no `label` is shown. Default `"Loading"`. |
| className | string | — | |
| color | ____ColorValue_Internal | — | Spinner color. Defaults to the theme tint. |
| fullScreen | boolean | true | `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. |
| label | string | — | Text shown under the spinner. It is also what screen readers announce. |
| safeAreaEdges | NativeLoadingStateEdge[] | ["top", "bottom", "left", "right"] | Safe-area edges when `fullScreen`. Default all four. |
| size | enum | large | Spinner size. Default `"large"`. |
| testID | string | loading-state | testID on the root; the spinner is `${testID}-spinner`, the label `${testID}-label`. Default `"loading-state"`. |