Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 2 additions & 7 deletions build/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const ${name} = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -50,11 +50,6 @@ ${name}.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

${name}.defaultProps = {
color: "currentColor",
size: "24"
};

export default ${name};
`
fs.writeFileSync(location, template, 'utf-8')
Expand All @@ -65,4 +60,4 @@ export default ${name};

fs.writeFileSync(iconsIndexPath, indexJs.join('\n'), 'utf-8')

console.log(`Generated ${uniconsConfig.length} icon components.`)
console.log(`Generated ${uniconsConfig.length} icon components.`)
6 changes: 1 addition & 5 deletions icons/uil-0-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil0Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil0Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil0Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil0Plus;
6 changes: 1 addition & 5 deletions icons/uil-10-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil10Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil10Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil10Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil10Plus;
6 changes: 1 addition & 5 deletions icons/uil-12-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil12Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil12Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil12Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil12Plus;
7 changes: 1 addition & 6 deletions icons/uil-13-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil13Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ Uil13Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil13Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil13Plus;
7 changes: 1 addition & 6 deletions icons/uil-16-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil16Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ Uil16Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil16Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil16Plus;
6 changes: 1 addition & 5 deletions icons/uil-17-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil17Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil17Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil17Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil17Plus;
7 changes: 1 addition & 6 deletions icons/uil-18-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil18Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ Uil18Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil18Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil18Plus;
7 changes: 1 addition & 6 deletions icons/uil-21-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil21Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ Uil21Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil21Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil21Plus;
6 changes: 1 addition & 5 deletions icons/uil-3-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil3Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil3Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil3Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil3Plus;
6 changes: 1 addition & 5 deletions icons/uil-500px.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil500px = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil500px.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil500px.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil500px;
6 changes: 1 addition & 5 deletions icons/uil-6-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const Uil6Plus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ Uil6Plus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

Uil6Plus.defaultProps = {
color: "currentColor",
size: "24"
};

export default Uil6Plus;
7 changes: 1 addition & 6 deletions icons/uil-abacus.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAbacus = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ UilAbacus.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAbacus.defaultProps = {
color: "currentColor",
size: "24"
};

export default UilAbacus;
7 changes: 1 addition & 6 deletions icons/uil-accessible-icon-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAccessibleIconAlt = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ UilAccessibleIconAlt.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAccessibleIconAlt.defaultProps = {
color: "currentColor",
size: "24"
};

export default UilAccessibleIconAlt;
6 changes: 1 addition & 5 deletions icons/uil-adjust-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdjustAlt = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,5 @@ UilAdjustAlt.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdjustAlt.defaultProps = {
color: "currentColor",
size: "24"
};

export default UilAdjustAlt;
7 changes: 1 addition & 6 deletions icons/uil-adjust-circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdjustCircle = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ UilAdjustCircle.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdjustCircle.defaultProps = {
color: "currentColor",
size: "24"
};

export default UilAdjustCircle;
7 changes: 2 additions & 5 deletions icons/uil-adjust-half.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdjustHalf = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,6 @@ UilAdjustHalf.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdjustHalf.defaultProps = {
color: "currentColor",
size: "24"
};


export default UilAdjustHalf;
7 changes: 1 addition & 6 deletions icons/uil-adjust.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdjust = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,4 @@ UilAdjust.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdjust.defaultProps = {
color: "currentColor",
size: "24"
};

export default UilAdjust;
7 changes: 2 additions & 5 deletions icons/uil-adobe-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdobeAlt = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,6 @@ UilAdobeAlt.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdobeAlt.defaultProps = {
color: "currentColor",
size: "24"
};


export default UilAdobeAlt;
7 changes: 2 additions & 5 deletions icons/uil-adobe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";

const UilAdobe = props => {
const { color, size, ...otherProps } = props;
const { color = "currentColor", size = "24", ...otherProps } = props;
return (
<Svg
width={size}
Expand All @@ -22,9 +22,6 @@ UilAdobe.propTypes = {
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};

UilAdobe.defaultProps = {
color: "currentColor",
size: "24"
};


export default UilAdobe;
Loading