-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Handle condition where skip_spaces
could put the index out of range.
#1085
Conversation
eahrold
commented
Sep 1, 2019
- ref: Path not rendering after upgrade to react-native-svg 9.8.0 #1083
Good job, man. I hope this gets merged asap. |
@msand no mean to disrespect by tagging you but this PR fixes something really important, it's literally fixing this bug that breaks the library from being used. Hope we can merge it as soon as possible. Thanks in advance. |
Published v9.8.2 |
@msand oh thanks, didn't know. :) thanks for your time. And sorry to bother! |
@@ -39,6 +39,10 @@ Path parse(String data) { | |||
while (i < l) { | |||
skip_spaces(); | |||
|
|||
if (i >= l) { | |||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was lint complaining about the missing ";" when u fixed this? It is complaining on mine D:
@eahrold Oops, lint complaining about a missing ";" in the java file. Do you disable lint? |
@msqar you're absolutely right needs the
|
Those warnings are a bug in eslint. If the native code compiles it should be enough. Assumed you had done that. |
Unfortunately, I did not. I threw the changes together late last night without even intending to do a PR, and they were so small I thought "why not", and then did the pr to develop. @msand It was careless of me, and I apologize. I hope it didn't bum out your Sunday too much. |
No worries, takes seconds to cut a release anyway, and noone else seems to have experienced the issue, no hard feelings :) Thanks for the fix! |
Thanks for the fix guys :) |
Btw, this was certainly on me, I should've added continous integration with unit and end to end tests long ago, or tried using the changes at the very least. I set up a e2e testing prototype this spring, and this reminds me I need finish that up. |
I am getting the same error of ''Error while updating property 'd' of a View managed by: RNSVGPath' while I create an array of String data |