Skip to content

Instantly share code, notes, and snippets.

View jwh-hutchison's full-sized avatar
🐝

Jeff Hughes jwh-hutchison

🐝
View GitHub Profile
@Aung-Myint-Thein
Aung-Myint-Thein / CircularProgress.js
Created April 1, 2020 05:32
React Native Circular Progress Component using react-native-svg
import React from "react";
import { View } from "react-native";
import { Svg, Circle, Text as SVGText } from 'react-native-svg'
const CircularProgress = (props) => {
const { size, strokeWidth, text } = props;
const radius = (size - strokeWidth) / 2;
const circum = radius * 2 * Math.PI;
const svgProgress = 100 - props.progressPercent;