1.0.6 • Published 4 years ago

react-native-animated-circular-progress v1.0.6

Weekly downloads
92
License
MIT
Repository
github
Last release
4 years ago

license Version npm

react-native-animated-circular-progress

Animated circular progress components for React Native project, with all pure React Native API

Component API

AnimatedCircularProgress

npm.io

AnimatedCircularProgress

import AnimatedCircularProgress from 'react-native-animated-circular-progress';

<AnimatedCircularProgress
    backgroundColor='red'
    color='green'
    startDeg={45}
    endDeg={120}
    radius={60}
    innerRadius={40}
    duration={1000}
/>;

You also use CircularProgress without inner Circle

<AnimatedCircularProgress
    startDeg={45}
    endDeg={120}
    innerRadius={0}
    duration={300}
    style={{ marginTop: 10 }}
/>

Props

NameDescriptionTypeRequiredDefault Value
backgroundColorThe background color of CircularProgressString#eeeeee '#eeeeee'
colorThe color of CircularProgressString#1e88e5 '#1e88e5'
startDegStart degree of CircularProgress, where animation start (0-360)Number0
endDegEnd degree of CircularProgress, where animation end (0-360), greater than startDegNumber360
radiusRadius of outer CircularProgressNumber100
innerRadiusRadius of inner CircularProgressNumber80
innerBackgroundColorBackground color of inner CircularProgressStringtransparent
durationTime in ms, animation processing during this time. Actually animation time is duration / (endDeg - startDeg) smaller than radiusNumber1000
childrenThe children to render inside this componentNodenull
styleThe custom styling which will be applied to the container of the childrenStylenull

Installation

yarn add react-native-animated-circular-progress

or

npm install react-native-animated-circular-progress

Author

Dinh Huynh

License

MIT