Код: Выделить всё
import React from 'react';
import {
Svg,
Path,
Defs,
LinearGradient,
Stop,
ClipPath,
} from 'react-native-svg';
import {colors} from '../../../constants/colors';
interface FilledEllipseGraphProps {
percentage: number;
}
const FilledEllipseGraph: React.FC = ({
percentage,
}) => {
const normalizedPercentage = Math.max(0, Math.min(percentage, 100));
const stopOffset = normalizedPercentage / 100;
return (
);
};
export default FilledEllipseGraph;
введите сюда описание изображения
И это мой текущий результат (50% ):
введите здесь описание изображения
Подробнее здесь: https://stackoverflow.com/questions/786 ... unded-ends
Мобильная версия