mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
chore: bump react-native and other packages (#2598)
# Summary * Bump react-native and other packages (babel, eslint, prettier, `@types`) to resolve errors in https://github.com/software-mansion/react-native-svg/pull/2586 * Cleanup unused/unnecessary devDependencies ## Test Plan Lib should work exactly the same as before.
This commit is contained in:
@@ -29,6 +29,8 @@ export const FilterImage = (props: FilterImageProps) => {
|
||||
const extractedFilters = [...filters, ...extractFiltersCss(stylesFilter)];
|
||||
const filterId = React.useMemo(() => `RNSVG-${getRandomNumber()}`, []);
|
||||
|
||||
if (!source) return null;
|
||||
|
||||
const src =
|
||||
Platform.OS === 'web'
|
||||
? resolveAssetUri(source)
|
||||
|
||||
@@ -83,6 +83,7 @@ export function transformsArrayToProps(
|
||||
}
|
||||
const key = keys[0] as keyof TransformProps;
|
||||
const value = transformObject[key as keyof typeof transformObject];
|
||||
// @ts-expect-error FIXME
|
||||
props[key] = value;
|
||||
});
|
||||
return props;
|
||||
@@ -182,6 +183,7 @@ export function transformToMatrix(
|
||||
);
|
||||
} else {
|
||||
const transformProps = props2transform(
|
||||
// @ts-expect-error FIXME
|
||||
transformsArrayToProps(transform as TransformsStyleArray)
|
||||
);
|
||||
transformProps && appendTransformProps(transformProps);
|
||||
@@ -194,6 +196,7 @@ export function transformToMatrix(
|
||||
console.error(e);
|
||||
}
|
||||
} else {
|
||||
// @ts-expect-error FIXME
|
||||
const transformProps = props2transform(transform);
|
||||
transformProps && appendTransformProps(transformProps);
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ export function parseTransformProp(
|
||||
transformArray.push(`matrix(${transform.join(' ')})`);
|
||||
} else {
|
||||
const stringifiedProps = transformsArrayToProps(
|
||||
// @ts-expect-error FIXME
|
||||
transform as TransformsStyleArray
|
||||
);
|
||||
transformArray.push(...stringifyTransformProps(stringifiedProps));
|
||||
|
||||
Reference in New Issue
Block a user