Media Mark
A white mark over a photo or a video, on the platform's darkening, its middle on the center of the corner's arc.
import { MediaMark } from "@plexui/react-native"Examples
Overview
Platforms
| iOS 27 | Android | |
|---|---|---|
| Native component | None: Photos' marks over a thumbnail | None: Google Photos' marks over a thumbnail |
| Look | A radial darkening from the mark's corner (38% black, gone 65 by 41), an edge's across the width | A linear darkening from the mark's edge across the width, 26% black, gone 56dp in |
API
| Prop | Type | Default | Description |
|---|---|---|---|
placement | "topStart" | "topEnd" | "bottomStart" | "bottomEnd" | "top" | "bottom" | — | Where the mark stands over the media: a corner, or the middle of the top or bottom edge |
radius | number | 12 on iOS, 17 on Android | The media's corner radius: the mark's middle stands this far from the edges it is at, on the center of the corner's arc |
scrim | boolean | true | The platform's darkening under the mark, which keeps white marks legible on a light photo |
children | ReactNode | — | The mark: a symbol, a label, a PageControl in tone="onColor" |
style | StyleProp<ViewStyle> | — | Style of the layer over the media |
testID | string | — | Test id |
MEDIA_MARK holds the measures.