react-native-progress icon indicating copy to clipboard operation
react-native-progress copied to clipboard

Progress Circle not working unless package react-native-svg separately installed

Open Fashad-Ahmed opened this issue 3 years ago • 4 comments

If Progress Circle gets imported like:

import ProgressCircle from 'react-native-progress/Circle;

In this scenario, using ProgressCircle component will give error of a missing dependency of react-native-svg, which has to be installed separately. Kindly, add this thing in your documentation.

Fashad-Ahmed avatar Oct 16 '22 11:10 Fashad-Ahmed

its true

Bimbimz avatar Nov 15 '22 08:11 Bimbimz

I have a slightly different problem which might be related:

The circle is not working when using react-native-svg as direct dependency in the latest version v13.x.x. NativeBase errors when it is loaded as peer-dependency, so to get it working, I need to tie react-native-svg to v12.x.x.

I do import * as Progress from 'react-native-progress' and use Progress.Circle component afterwards.

rafaelmaeuer avatar Feb 28 '23 15:02 rafaelmaeuer

Got the same issue. It's not working with react-native-svg 13.x. using v12.x makes it work.

jeromecance avatar May 25 '23 15:05 jeromecance

The easiest way is to change the version of react-native-progress with the PR# fixing this issue in package.json file and run npm update

"react-native-progress": "oblador/react-native-progress#pull/258/head"

ebulku avatar Jul 20 '23 14:07 ebulku