1.0.3 • Published 1 year ago

react-native-expo-circle-progress v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

react-native-expo-circle-progress

It's a cross platform component to show circular progress indicator for mobile apps and web as well.

Screenshot

WhatsApp Image 2024-04-07 at 6 07 49 AM

Install and import package

Installation

npm i react-native-expo-circle-progress

Import

import PercentageCircle from 'react-native-expo-circle-progress';

Example Percentage Circles

<PercentageCircle radius={35} percent={50} color={"#3498db"} />
<PercentageCircle radius={35} percent={50} color={"#3498db"} >
  <Text>Example</Text>
  <Text>50%</Text>
</PercentageCircle>
<PercentageCircle radius={35} borderWidth={8} percent={50} color={"#3498db"} >
  <Image source={{ uri: 'https://avatars.githubusercontent.com/u/111197710?v=4' }} style={{ width: 100, height: 100 }} resizeMode='cover' />
</PercentageCircle>
<Text>50%</Text>
<PercentageCircle radius={35} percent={50} color={"#3498db"} >
  <Text>Example</Text>
</PercentageCircle>
<Text>50%</Text>
<PercentageCircle radius={35} percent={50} color={"#3498db"} />
<PercentageCircle radius={35} percent={50} color={"#3498db"} >
  <Text>Example</Text>
  <Text>50%</Text>
</PercentageCircle>
<PercentageCircle radius={35} borderWidth={8} percent={50} color={"#3498db"} >
  <Image source={{ uri: 'https://avatars.githubusercontent.com/u/111197710?v=4' }} style={{ width: 100, height: 100 }} resizeMode='cover' />
</PercentageCircle>
<Text>50%</Text>
<PercentageCircle radius={35} percent={50} color={"#3498db"} >
  <Text>Example</Text>
</PercentageCircle>
<Text>50%</Text>

Props

PropDescriptionType
colorColor of the outer circlestring
bgcolorBackground color of the circlestring
innerColorColor of the inner circlestring
radiusRadius of the circlenumber
percentPercentage to displaynumber
borderWidthWidth of the circle's bordernumber
textStyleStyle for text inside the circleStyleProp
disabledBoolean to disable interactionboolean
disabledTextText to display when disabledstring
childrenAdditional content inside the circleReact.ReactNode
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago