What a screen shows when it has nothing to show, with a symbol, a title, a description and actions.
import { EmptyMessage } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | Content unavailable view | None: the Plex Android empty view |
| Look | A bare symbol, a bold title and a description, centered | A gray symbol, a Medium 20 title and a 14sp gray description, centered, over a full-width 48dp pill |
| Prop | Type | Default | Description |
|---|
children | ReactNode | — | The parts |
fill | "static" | "absolute" | "none" | "static" | static grows to fill the space it is given and centers in it; absolute covers its parent and centers; none hugs its content |
size | "sm" | "md" | "md" | sm is the compact message for a panel: a small icon tile and, on iOS, a 15/20 description |
align | "center" | "start" | "center" | start lines the message up at the start, for an empty state under a section heading |
actionPosition | "inline" | "bottom" | "inline" | iOS: bottom sets the actions at the foot of a message of the default size that fills its space; inline under the description |
titleLine | { fontSize: number; lineHeight: number } | — | The size and line of a title the app sets itself; the title takes it and the description's gap is measured from it |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the container |
| Prop | Type | Default | Description |
|---|
children | ReactNode | — | The symbol, an icon element |
color | "secondary" | "danger" | "warning" | "secondary" | Semantic color |
size | "sm" | "md" | — | The icon's own size; defaults to the message's |
| Prop | Type | Default | Description |
|---|
children | ReactNode | — | The title, announced as a header |
color | "secondary" | "danger" | "warning" | "secondary" | danger or warning tints the title; secondary keeps the text color |
style | StyleProp<TextStyle> | — | Style of the title, as a brand face |
EmptyMessage.Description and EmptyMessage.ActionRow take children only.