NativeViewProps
The component's props: the view's own, each a value or a signal, beside the style, layout and accessibility props every view takes. A prop bound to a signal is two-way: an event whose payload has a field of the prop's name writes the signal. Press handlers belong to the view's own events.
Verwendung
Overlay a now-playing caption
Dieser Typ wird verwendet von Blur
import { Blur, Image, Text, VStack } from 'kuito';
export default function NowPlaying() {
return (
<VStack flex={1}>
<Image
src="https://example.com/cover.jpg"
position="absolute"
top={0}
left={0}
right={0}
bottom={0}
/>
<Blur material="thin" position="absolute" bottom={0} left={0} right={0} padding={16}>
<Text>Now playing</Text>
</Blur>
</VStack>
);
}Typdeklaration
export type NativeViewProps<P, M = Record<never, never>> = Omit<
CommonProps,
keyof P | 'onPress' | 'onPressCapture' | 'ref'
> & {
ref?: ElementRef<NativeViewHandle<M>>;
} & {
[K in keyof P]: K extends EventKey | 'children' ? P[K] : Bound<P[K]>;
};Mitglieder 1
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
ref | ElementRef<NativeViewHandle<M>> | Nein | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.