Fix style TypeScript errors

This commit is contained in:
Kevin Schmidt
2018-09-14 15:57:21 -06:00
parent 7912c5d711
commit 124fccf127
8 changed files with 30 additions and 12 deletions

View File

@@ -149,7 +149,7 @@ class Icon extends ImageStyle {
5); // `imgSize` must be set when `image` is provided
if ((src === undefined || src.length === 0) && image) {
src = image.src || getUid(image).toString();
src = image instanceof HTMLImageElement && image.src || getUid(image).toString();
}
assert(src !== undefined && src.length > 0,
6); // A defined and non-empty `src` or `image` must be provided