Skip to content

Commit 0e5f09b

Browse files
committed
Add Support for react@19
2 parents 1c3fe61 + e793653 commit 0e5f09b

1,207 files changed

Lines changed: 2392 additions & 6035 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/generate.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import Svg, { Path } from "react-native-svg";
3131
import PropTypes from "prop-types";
3232
3333
const ${name} = props => {
34-
const { color, size, ...otherProps } = props;
34+
const { color = "currentColor", size = "24", ...otherProps } = props;
3535
return (
3636
<Svg
3737
width={size}
@@ -50,11 +50,6 @@ ${name}.propTypes = {
5050
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
5151
};
5252
53-
${name}.defaultProps = {
54-
color: "currentColor",
55-
size: "24"
56-
};
57-
5853
export default ${name};
5954
`
6055
fs.writeFileSync(location, template, 'utf-8')
@@ -65,4 +60,4 @@ export default ${name};
6560

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

68-
console.log(`Generated ${uniconsConfig.length} icon components.`)
63+
console.log(`Generated ${uniconsConfig.length} icon components.`)

icons/uil-0-plus.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil0Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,5 @@ Uil0Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil0Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
2925

3026
export default Uil0Plus;

icons/uil-10-plus.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil10Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,5 @@ Uil10Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil10Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
2925

3026
export default Uil10Plus;

icons/uil-12-plus.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil12Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,5 @@ Uil12Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil12Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
2925

3026
export default Uil12Plus;

icons/uil-13-plus.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil13Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,4 @@ Uil13Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil13Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
29-
3025
export default Uil13Plus;

icons/uil-16-plus.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil16Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,4 @@ Uil16Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil16Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
29-
3025
export default Uil16Plus;

icons/uil-17-plus.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil17Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,5 @@ Uil17Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil17Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
2925

3026
export default Uil17Plus;

icons/uil-18-plus.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil18Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,4 @@ Uil18Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil18Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
29-
3025
export default Uil18Plus;

icons/uil-21-plus.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil21Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,4 @@ Uil21Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil21Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
29-
3025
export default Uil21Plus;

icons/uil-3-plus.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from "react-native-svg";
33
import PropTypes from "prop-types";
44

55
const Uil3Plus = props => {
6-
const { color, size, ...otherProps } = props;
6+
const { color = "currentColor", size = "24", ...otherProps } = props;
77
return (
88
<Svg
99
width={size}
@@ -22,9 +22,5 @@ Uil3Plus.propTypes = {
2222
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
2323
};
2424

25-
Uil3Plus.defaultProps = {
26-
color: "currentColor",
27-
size: "24"
28-
};
2925

3026
export default Uil3Plus;

0 commit comments

Comments
 (0)