react-native-progress
react-native-progress copied to clipboard
Progress.Circle is not working on Android - -Error while updating property 'stroke' in shadow node of type: ARTShape
This happens when we used Progress.Circle and Progress.CircleSnail "Error while updating property 'stroke' in shadow node of type: ARTShape
Value for stroke cannot be cast from String to ReadableArray"
Progress.Bar might be working fine since it doesn't cause this error but we don't need the bar version for our app.
me too
me too
I switched back to version 3.5.0. Even 3.6.0 is not working..
Install this lib and check https://github.com/react-native-community/art
Install this lib and check https://github.com/react-native-community/art
I tried that before opening this issue. It didn't work.
Install this lib and check https://github.com/react-native-community/art
This is working for me, but I hope we don't have to install an extra package.
Not working for me too, same issue running on android.
I fixed this problem, and it working , following is the method
see https://github.com/react-native-community/art readme, we should migrating from the core react-native module
import {ART} from 'react-native'; const {Surface, Shape} = ART;
to
import {Surface, Shape} from '@react-native-community/art';
so , I override react-native-progress code ,modify import ART from '@react-native-community/art', like this : `// import { ART } from 'react-native';
import * as ART from '@react-native-community/art'`,
remember modify all file in react-native-progress;
good luck.
@sszcome did anyone create a pull request yet?
@dogaoz I can have a look at creating a PR tonight
I created a PR at https://github.com/oblador/react-native-progress/pull/181
It is finally merged. Imagine how tired we are lmao
meme below

has anyone succeeded to resolve this issue ?
thanks was resolved by update @react-native-community/art to version 1.0.4
I have @react-native-community/art version 1.1.2 and I have exactly the same issue. Any news on this ?
I have @react-native-community/art version 1.1.2 and I have exactly the same issue. Any news on this ?
Yeah I also encounter this.
I'm investigating and for now I've pinpointed this part of code:
return (
<ARTShape
d={path}
strokeCap={strokeCap}
strokeWidth={strokeWidth}
{...restProps}
/>
The {...restProps} containing stroke property which causing the error
I noticed that if I pass color:{null} it stops the error.
For some reason my project is trying to use Facebook's old ARTShapeShadowNode which has
@ReactProp(name = "stroke")
public void setStroke(@Nullable ReadableArray strokeColors) {
mStrokeColor = PropHelper.toFloatArray(strokeColors);
markUpdated();
}
don't know how to tell my project to not use this.
Managed to "fix" the problem right now with installing version 1.0.2 of art library as someone suggested here: https://github.com/oblador/react-native-progress/issues/179
I hope to find a proper fix.
Hi @Rotemy,
I installed the 1.0.2 of Art library but I still have the issue, what version of Progress are you using?
Thanks, Théo
Hi @Rotemy,
I installed the 1.0.2 of Art library but I still have the issue, what version of Progress are you using?
Thanks, Théo
I have 4.0.3, but I got to say that nothing (Circle, CircleSnail) is working for me, especially in iOS.
Very annoying.
me too... going crazy with this right now, I'm gonna use Activity Indicator for the time being.
eu também ... enlouquecendo com isso agora, vou usar o Indicador de Atividade por enquanto.
Veja isso https://github.com/expo/expo/issues/6523#issuecomment-571001942
me too
Downgrade it work for me: yarn add react-native-progress@^3.6.0
Downgrade it work for me:
yarn add react-native-progress@^3.6.0
I tried all the above suggestions, but only downgrading to 3.6.0 solved the issue on android.
yarn add @react-native-community/art and rebuilding the app worked for me. I believe because this package doesn't have any native code, autolinking for @react-native-communit/art doesn't work. For RN < 0.60, react-native link @react-native-communit/art is also required.
The fix should be that this library set up the native dependency properly, or at least add linking instructions to the readme.
Any new update on this, try latest version "@react-native-community/art": "^1.1.2" and "react-native-progress": "^4.0.3" but it's still not work.
Any new update on this, try latest version "@react-native-community/art": "^1.1.2" and "react-native-progress": "^4.0.3" but it's still not work.
Sorry, I miss do the linking on Android for react-native-art, for those who getting this issue just follow these steps to link on android: https://github.com/react-native-community/art
I have been upgraded "react-native-progress": "4.0.3",and "@react-native-community/art": "1.2.0", this issue was resolved
@sandeepsinghs thanks for the solution
It works for me
If you are on expo version 36 this wont work
problms with PieChart. help me please