diff --git a/lib/create-multi-style-icon-set.js b/lib/create-multi-style-icon-set.js index ec1b20984..04cc9d9a0 100644 --- a/lib/create-multi-style-icon-set.js +++ b/lib/create-multi-style-icon-set.js @@ -91,6 +91,15 @@ export default function createMultiStyleIconSet(styles, optionsInput = {}) { return getStyledIconSet(style, name).getImageSource(name, size, color); } + function getImageSourceSync( + name, + size = DEFAULT_ICON_SIZE, + color = DEFAULT_ICON_COLOR, + style = options.defaultStyle + ) { + return getStyledIconSet(style, name).getImageSourceSync(name, size, color); + } + function getFontFamily(style = options.defaultStyle) { return getStyledIconSet(style).getFontFamily(); } @@ -131,6 +140,7 @@ export default function createMultiStyleIconSet(styles, optionsInput = {}) { Icon.Button = createStyledIconClass('Button'); Icon.getStyledIconSet = getStyledIconSet; Icon.getImageSource = getImageSource; + Icon.getImageSourceSync = getImageSourceSync; Icon.getFontFamily = getFontFamily; Icon.getRawGlyphMap = getRawGlyphMap; Icon.hasIcon = hasIcon;