Kinetik UI

Profile

.md

A profile and settings screen: a turning avatar ring, stats that count up and grouped rows with switches.

v1.0.0Live on webreact-native-reanimatedreact-native-safe-area-contextreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add profile

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/profile.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-safe-area-context react-native-worklets
  2. Copy the source files
    • components/kinetik/screens/profile.tsx
    View source files

Usage

import { Profile } from '@/components/kinetik/screens/profile';

<Profile
  user={{ name: user.name, handle: user.email, avatar: { uri: user.photoUrl } }}
  stats={[
    { label: 'Posts', value: 128 },
    { label: 'Followers', value: 24817 },
    { label: 'Following', value: 312 },
  ]}
  plan={{ title: 'Pro', detail: 'Renews on 3 March', onPress: () => router.push('/plan') }}
  sections={[
    {
      title: 'Account',
      rows: [
        { key: 'info', label: 'Personal info', icon: <UserIcon />, onPress: openInfo },
        { key: 'payment', label: 'Payment methods', detail: 'Visa •• 42', onPress: openCards },
      ],
    },
    {
      title: 'Preferences',
      rows: [
        {
          key: 'notifications',
          label: 'Notifications',
          toggle: { value: notify, onValueChange: setNotify },
        },
      ],
    },
  ]}
  onEdit={() => router.push('/profile/edit')}
  onSignOut={signOut}
/>;

When to use

  • The account tab of an app: who you are, a few numbers and the settings that belong to you.

When not to use

  • A public profile other people visit: it needs follow and message actions, not settings.
  • Long settings trees: link to a separate settings screen from one row instead.

Notes

  • Without avatar the initials of name are shown. Counts above 9,999 shorten to 12.4k and 1.2M.
  • A row with toggle becomes a switch; any other row is a button with a chevron. onSignOut adds a red Sign out row at the end.
  • Row icons are yours to pass, so they match the rest of your app.

Props

ProfileProps

PropTypeDefaultDescription
userrequiredProfileUser—
statsreadonly ProfileStat[][]
plan{ title: string; detail?: string; onPress?: () => void }—A highlighted card under the stats, e.g. the current subscription.
sectionsreadonly ProfileSection[]DEFAULT_SECTIONS
onEdit() => void—
onSignOut() => void—Adds a Sign out row at the end.

Performance and accessibility

Performance

Budget
The avatar ring turns on the UI thread. Stats count up for about a second after the screen opens (re-rendering on animation frames), then the screen is static.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.24× the system Settings app on the same emulator (indicative only) · keeps drawing at rest · 151 MB app memory. Animating at rest: the avatar ring keeps turning while the screen is open.

Real-device measurement pending.

Accessibility

Reduced motion
The ring holds still, stats show their final values and blocks appear without settling in.
Screen readers
The name and section titles are headers. Each stat reads as one value ("24.8k Followers"); rows are buttons with their detail as a hint, and switches are named after their row.
Touch target
Rows are 56 pt tall; buttons and switches are at least 44 pt.

Source files

components/kinetik/screens/profile.tsx is in the Code tab of the preview above.