Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Platform.OS === "android" ? "md-" + name : "ios-" + name
}
size={size}
color={color}
{...otherProps}
/>
);
}
return (
);
}
}
Icon.propTypes = {
...Ionicon.propTypes,
name: PropTypes.string
};
Icon.defaultProps = {
color: commonColors.white,
size: 18
};
this.Icon = Ionicons;
}
} else {
this.Icon = Ionicons;
}
}
render() {
return (
this._root = c} {...this.props} />
);
}
}
Icon.propTypes = {
...Ionicons.propTypes,
style: React.PropTypes.object,
};
const StyledIcon = connectStyle('NativeBase.Icon', {}, mapPropsToStyleNames)(Icon);
export {
StyledIcon as Icon,
};