Skip to content

Commit

Permalink
Revert "chore: bump react-native and other packages (software-mansion…
Browse files Browse the repository at this point in the history
…#2598)"

This reverts commit c7743f1.
  • Loading branch information
jakex7 committed Jan 9, 2025
1 parent c667af4 commit b12943f
Show file tree
Hide file tree
Showing 6 changed files with 1,349 additions and 2,062 deletions.
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['@react-native/babel-plugin-codegen'],
};
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,22 @@
"warn-once": "0.1.1"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@react-native/babel-preset": "^0.77.0-rc.6",
"@react-native/eslint-config": "^0.77.0-rc.6",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native-community/eslint-plugin": "^1.2.0",
"@react-native/babel-plugin-codegen": "^0.75.4",
"@react-native/babel-preset": "^0.75.4",
"@react-native/eslint-config": "^0.72.2",
"@types/css-tree": "^1.0.3",
"@types/jest": "^27.5.2",
"@types/node": "*",
"@types/pixelmatch": "^5.2.0",
"@types/pngjs": "^6.0.5",
"@types/react": "^18.3.12",
"@types/ws": "^8.5.13",
"@types/react": "^18.2.18",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.0",
"babel-plugin-module-resolver": "^5.0.0",
"clang-format": "^1.8.0",
"eslint": "^8.44.0",
Expand All @@ -108,10 +111,10 @@
"pngjs": "^7.0.0",
"prettier": "3.0.1",
"puppeteer": "^22.12.1",
"react": "^18.3.1",
"react-native": "^0.77.0-rc.6",
"react": "^18.2.0",
"react-native": "^0.72.3",
"react-native-builder-bob": "^0.20.4",
"react-native-windows": "^0.76.3",
"react-native-windows": "^0.72.4",
"react-test-renderer": "^18.2.0",
"release-it": "^14.12.5",
"ts-node": "^10.9.2",
Expand Down
2 changes: 0 additions & 2 deletions src/filter-image/FilterImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ 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)
Expand Down
3 changes: 0 additions & 3 deletions src/lib/extract/extractTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ 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;
Expand Down Expand Up @@ -183,7 +182,6 @@ export function transformToMatrix(
);
} else {
const transformProps = props2transform(
// @ts-expect-error FIXME
transformsArrayToProps(transform as TransformsStyleArray)
);
transformProps && appendTransformProps(transformProps);
Expand All @@ -196,7 +194,6 @@ export function transformToMatrix(
console.error(e);
}
} else {
// @ts-expect-error FIXME
const transformProps = props2transform(transform);
transformProps && appendTransformProps(transformProps);
}
Expand Down
1 change: 0 additions & 1 deletion src/web/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export function parseTransformProp(
transformArray.push(`matrix(${transform.join(' ')})`);
} else {
const stringifiedProps = transformsArrayToProps(
// @ts-expect-error FIXME
transform as TransformsStyleArray
);
transformArray.push(...stringifyTransformProps(stringifiedProps));
Expand Down
Loading

0 comments on commit b12943f

Please sign in to comment.