mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +00:00
fix(android): support setting path null
This commit is contained in:
@@ -33,8 +33,11 @@ class PathParser {
|
||||
|
||||
static Path parse(String d) {
|
||||
elements = new ArrayList<>();
|
||||
char prev_cmd = ' ';
|
||||
mPath = new Path();
|
||||
if(d == null){
|
||||
return mPath;
|
||||
}
|
||||
char prev_cmd = ' ';
|
||||
l = d.length();
|
||||
s = d;
|
||||
i = 0;
|
||||
|
||||
Reference in New Issue
Block a user