React Native MantineFeedback

SemiCircleProgress

Represent a value as a semicircular gauge

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

Usage

import { SemiCircleProgress } from 'react-native-mantine';

<SemiCircleProgress
  value={40}
  size={200}
  thickness={12}
  label="40%"
  labelPosition="center"
/>

// Animated with custom colors
<SemiCircleProgress
  value={value}
  transitionDuration={250}
  filledSegmentColor="green"
  fillDirection="right-to-left"
/>

Props

PropTypeDefaultDescription
value (required)numberProgress value from 0 to 100
sizenumber200Diameter of the semicircle in px
thicknessnumber12Ring thickness in px
fillDirection'left-to-right' | 'right-to-left'"left-to-right"Direction from which the arc is filled
orientation'up' | 'down'"up"Orientation of the semicircle
filledSegmentColorMantineColortheme.primaryColorColor of the filled segment, key of theme.colors or any valid color
emptySegmentColorMantineColorColor of the empty segment
innerBackgroundColorMantineColorColor of the inner area, should match the background the component is rendered on
transitionDurationnumber0Transition duration of the filled segment in ms, 0 disables animation
labelReact.ReactNodeLabel displayed inside the progress
labelPosition'center' | 'bottom'"bottom"Label position relative to the semicircle
labelStyleTextStyleLabel text style
styleViewStyleAdditional styles to apply to the root element

Source on GitHub · npm