Skip to main content

Progress.Bar

Show progress of some activity with a bar.

Import

import { Progress } from "@dhua5922/react-native-kit";

Examples

Live Editor
function Example() {
  const [progress, setProgress] = useState(0);
  setTimeout(() => setProgress(progress + 1), 500);
  return (
    <Progress.Bar color="blue" progress={progress} duration={500}>
      {progress}%
    </Progress.Bar>
  );
}
Result
Loading...

Props

note

Include all props from Div

NameTypeDefaultDescription
progressnumberCurrent progress of activity.
durationnumber300Duration of moving bar animation in milliseconds.
colorstringColor of progress bar and text.