React Native MantineFeedback

RingProgress

Circular progress indicator

Import: import { RingProgress } from 'react-native-mantine';

Usage

import { RingProgress, Text } from 'react-native-mantine';

<RingProgress
  size={120}
  thickness={12}
  sections={[
    { value: 40, color: 'blue' },
    { value: 30, color: 'orange' },
    { value: 15, color: 'green' },
  ]}
  label={<Text size="sm">85%</Text>}
/>

Props

PropTypeDefaultDescription
sections (required)RingProgressSection[]Sections of the ring
sizenumber120Size of the ring
thicknessnumber12Ring thickness
labelReact.ReactNodeLabel displayed in the center
rootColorstringRoot color from theme
roundCapsbooleanfalseIf true, ring section ends are rounded (accepted for Mantine parity, not yet applied in React Native)
styleanyAdditional styles
testIDstringTest identifier used by testing frameworks

Source on GitHub · npm