mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 09:27:20 +00:00
fix(android): support animating stroke color
This commit is contained in:
@@ -166,9 +166,10 @@ abstract public class RenderableView extends VirtualView {
|
||||
JavaOnlyArray arr = new JavaOnlyArray();
|
||||
arr.pushInt(0);
|
||||
Matcher m = regex.matcher(strokeColors.asString());
|
||||
int i = 0;
|
||||
while (m.find()) {
|
||||
double parsed = Double.parseDouble(m.group());
|
||||
arr.pushDouble(parsed);
|
||||
arr.pushDouble(i++ < 3 ? parsed / 255 : parsed);
|
||||
}
|
||||
stroke = arr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user