-
-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress.Circle is not working on Android - -Error while updating property 'stroke' in shadow node of type: ARTShape #179
Comments
me too |
I switched back to version 3.5.0. Even 3.6.0 is not working.. |
Install this lib and check |
I tried that before opening this issue. It didn't work. |
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,
to
so , I override react-native-progress code ,modify import ART from '@react-native-community/art', 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 #181 |
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 ? |
Yeah I also encounter this. I'm investigating and for now I've pinpointed this part of code:
The I noticed that if I pass |
For some reason my project is trying to use Facebook's old
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: #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, |
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. |
Veja isso expo/expo#6523 (comment) |
me too |
Downgrade it work for me: |
I tried all the above suggestions, but only downgrading to 3.6.0 solved the issue on android. |
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. |
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 |
this is a bug for react native. My ReactNative version is 0.61.4, the default implementation of ArtShape's property stroke is an array, but the community one is a string!!!! |
yes its not working , how can I resolve ? |
@mukulramchandani https://github.com/bartgryszko/react-native-circular-progress |
Okay. Actually I'm looking to downgrade the expo 35 (current 36) and have ART is not supported in expo 36. Looking for a way to downgrade it. Thanks for reply btw . :) |
any update? |
|
Until my fix gets merged you can use |
Tried and got error trying to load two version of same view art/surface.. |
What was the actual error? It sounds like an issue with linking. You may need to delete the |
Did a clean build - tired of fooling with it. Using https://github.com/RobertFOConnor/react-native-progress-wheel instead. Good luck! |
Seems like The
AKA nothing has changed! Just for the hell of it, I removed a lot of stuff from |
Additonal,you should change the source code of @react-native-community/art/lib/Shape.js. And use the code "stroke={extractBrush(props.stroke)}" at line #64 which has solved my problem. |
Love you. I like the way you solve the problem. Hope the author of @react-native-community/art will fix the issue. |
But I found the prop stroke of NativeShape need is [R, G, B, A]. Not the function extractBrush give [SOLID_COLOR, R, G, B, A]. So I keep Shape.js the same, but modify @react-native-community/art/lib/helpers.js function extractColor.
|
RN 0.63.2 ^ That's working for me although I did need to manually install react-native-community/art |
I fixed it by linking, although I have latest React version:
|
After rubbing my back on hot tar road from the last 2 days this gives me a feeling of ice. Thank you so much. |
Yeah.. I've had a fix out for a long time now but they won't merge for some reason. If you run:
It should apply the patch that @dwyanelin mentioned. |
I'm on Expo SDK 40 and spent a couple hours trying the following with various errors or issues:
I finally ended up liking react-native-semi-circle-progress with |
Any update on this? Cant make it work thanks to the same error of ReadableNativeArray cannot be cast to java.lang.String |
@Sp3ctreZero I solved this problem by adding java files to |
Need to update react-native-svg, if you have version 6. of react-native-svg will now work, with 12. works fine. |
I'm using "react": "18.0.0", "react-native": "0.69.5" and had to downgrade from react-native-svg version 13.2.0 to 12.0.3 with this: npm i react-native-svg@12.0.3 and that fixed this problem. |
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.
The text was updated successfully, but these errors were encountered: