Command palette

@yasinsensoy/native

React Native · Components

Spinner

Loading indicator: a spinning arc.

2 exports

Live example

The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.

Preview

Code

import { Spinner } from "@yasinsensoy/native";

<Spinner className="size-4 text-primary" />

Events

  1. Events appear here when you interact with the preview.

Import

import { Spinner } from "@yasinsensoy/native";

Spinner

component

Loading indicator: a spinning arc. ActivityIndicator looks different on Android and iOS; this component is the same on both platforms. The rotation runs on the native driver.

Spinner: MemoExoticComponent<({ size: base, color, label: labelProp, style, }: SpinnerProps) => JSX.Element>

Examples

`<Spinner size={20} />`

SpinnerProps

interface

Spinner props.

NameTypeDefaultDescription
size?number16Side length (pixels); scaled by device (UIProvider scaling).
color?stringtheme `mutedForegroundColor.
label?stringthe `loading` text (`"Yükleniyor"`)Text read by screen readers.
style?StyleProp<ViewStyle>Container style.