mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
refactor all components and isolated from ART dependency
This commit is contained in:
@@ -2,8 +2,8 @@ import Color from 'color';
|
||||
let noneFill = ['transparent', 'none'];
|
||||
export default function (color, opacity = 1) {
|
||||
if (noneFill.indexOf(color) !== -1 || !color) {
|
||||
return null;
|
||||
return Color('#000');
|
||||
} else {
|
||||
return Color(color).alpha(+opacity).rgbaString();
|
||||
return Color(color).alpha(+opacity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user