@lobehub/icons-rn 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +7 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo, useMemo } from 'react';
|
|
1
|
+
import { memo, useMemo, useId } from 'react';
|
|
2
2
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
3
|
import { View, Image, Text, useColorScheme } from 'react-native';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -781,7 +781,8 @@ var Avatar5 = memo((_a) => {
|
|
|
781
781
|
});
|
|
782
782
|
var Avatar_default5 = Avatar5;
|
|
783
783
|
var useFillId = (namespace) => {
|
|
784
|
-
const
|
|
784
|
+
const uniqueId = useId();
|
|
785
|
+
const id = `lobe-icons-${kebabCase(namespace)}-${uniqueId}`;
|
|
785
786
|
return useMemo(
|
|
786
787
|
() => ({
|
|
787
788
|
fill: `url(#${id})`,
|
|
@@ -791,16 +792,16 @@ var useFillId = (namespace) => {
|
|
|
791
792
|
);
|
|
792
793
|
};
|
|
793
794
|
var useFillIds = (namespace, length) => {
|
|
795
|
+
const uniqueId = useId();
|
|
794
796
|
return useMemo(() => {
|
|
795
|
-
|
|
796
|
-
const id = `lobe-icons-${kebabCase(namespace)}
|
|
797
|
+
return Array.from({ length }, (_, i) => {
|
|
798
|
+
const id = `lobe-icons-${kebabCase(namespace)}-${i}-${uniqueId}`;
|
|
797
799
|
return {
|
|
798
800
|
fill: `url(#${id})`,
|
|
799
801
|
id
|
|
800
802
|
};
|
|
801
803
|
});
|
|
802
|
-
|
|
803
|
-
}, [namespace, length]);
|
|
804
|
+
}, [namespace, length, uniqueId]);
|
|
804
805
|
};
|
|
805
806
|
var Icon13 = memo((_a) => {
|
|
806
807
|
var _b = _a, { size = 24, style } = _b, rest = __objRest(_b, ["size", "style"]);
|