Skip to content

🎥 Make videos programmatically with React

`@remotion/skia`: Upgrade to `@Shopify/[email protected]`

Jonny Burger719dfde715e6
diff --git a/packages/skia/package.json b/packages/skia/package.json
index e68f9ca36d..a6e49c76cf 100644
--- a/packages/skia/package.json
+++ b/packages/skia/package.json
@@ -33,10 +33,8 @@
"@shopify/react-native-skia": "2.0.0",
"canvaskit-wasm": "0.40.0",
"@types/react-native": "^0.69.2",
- "react": "18.3.1",
- "react-dom": "18.3.1",
- "@types/react": "18.3.1",
- "@types/react-dom": "18.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"remotion": "workspace:*",
"@remotion/eslint-config-internal": "workspace:*",
"eslint": "9.19.0"
diff --git a/packages/skia/src/SkiaCanvas.tsx b/packages/skia/src/SkiaCanvas.tsx
index e539a8089f..d380660bc2 100644
--- a/packages/skia/src/SkiaCanvas.tsx
+++ b/packages/skia/src/SkiaCanvas.tsx
@@ -1,6 +1,6 @@
-import type {CanvasProps, SkiaDomView} from '@shopify/react-native-skia';
+import type {CanvasProps} from '@shopify/react-native-skia';
import {Canvas} from '@shopify/react-native-skia';
-import type {FunctionComponent, ReactNode, RefAttributes} from 'react';
+import type {ReactNode} from 'react';
import React, {useMemo} from 'react';
import type {ViewProps} from 'react-native';
import {Internals} from 'remotion';
@@ -39,15 +39,11 @@ export const SkiaCanvas = ({
};
}, [mergedStyles, otherProps]);
- const FixedCanvas = Canvas as FunctionComponent<
- CanvasProps & RefAttributes<SkiaDomView>
- >;
-
return (
- <FixedCanvas {...props}>
+ <Canvas {...props}>
<Internals.RemotionContextProvider contexts={contexts}>
{children}
</Internals.RemotionContextProvider>
- </FixedCanvas>
+ </Canvas>
);
};
diff --git a/packages/template-skia/package.json b/packages/template-skia/package.json
index 9d63cb682e..189db566be 100644
--- a/packages/template-skia/package.json
+++ b/packages/template-skia/package.json
@@ -24,7 +24,6 @@
"devDependencies": {
"@remotion/eslint-config-flat": "workspace:*",
"@types/dom-webcodecs": "0.1.11",
- "@types/react": "19.0.0",
"@types/web": "0.0.166",
"eslint": "9.19.0",
"prettier": "3.3.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6a9a1ab439..594b5b368a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2036,13 +2036,7 @@ importers:
version: link:../eslint-config-internal
'@shopify/react-native-skia':
specifier: 2.0.0
- version: 2.0.0([email protected])
- '@types/react':
- specifier: 18.3.1
- version: 18.3.1
- '@types/react-dom':
- specifier: 18.3.1
- version: 18.3.1
+ version: 2.0.0([email protected])
'@types/react-native':
specifier: ^0.69.2
version: 0.69.2
@@ -2053,11 +2047,11 @@ importers:
specifier: 9.19.0
version: 9.19.0
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-dom:
- specifier: 18.3.1
- version: 18.3.1([email protected])
+ specifier: 19.0.0
+ version: 19.0.0([email protected])
packages/streaming:
devDependencies:
@@ -3019,9 +3013,6 @@ importers:
'@types/dom-webcodecs':
specifier: 0.1.11
version: 0.1.11
- '@types/react':
- specifier: 19.0.0
- version: 19.0.0
'@types/web':
specifier: 0.0.166
version: 0.0.166
@@ -13540,24 +13531,6 @@ packages:
resolution: {integrity: sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==}
dev: false
- resolution: {integrity: sha512-h7nKK3wABX4E4yOlyXDryfA+rBKw1zkfOOiTWQ6gqCn4kACNBnPSrmkTTWnoers+axgSFSqudhcZh0teaa3QHA==}
- hasBin: true
- peerDependencies:
- react: '>=19.0'
- react-native: '>=0.78'
- react-native-reanimated: ^3.0
- peerDependenciesMeta:
- react-native:
- optional: true
- react-native-reanimated:
- optional: true
- dependencies:
- canvaskit-wasm: 0.40.0
- react: 18.3.1
- react-reconciler: 0.31.0([email protected])
- dev: true
-
resolution: {integrity: sha512-h7nKK3wABX4E4yOlyXDryfA+rBKw1zkfOOiTWQ6gqCn4kACNBnPSrmkTTWnoers+axgSFSqudhcZh0teaa3QHA==}
hasBin: true
@@ -13574,7 +13547,6 @@ packages:
canvaskit-wasm: 0.40.0
react: 19.0.0
react-reconciler: 0.31.0([email protected])
- dev: false
/@sideway/[email protected]:
resolution: {integrity: sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==}
@@ -15230,6 +15202,7 @@ packages:
resolution: {integrity: sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==}
+ dev: false
resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==}
@@ -15241,6 +15214,7 @@ packages:
resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}
dependencies:
'@types/react': 19.0.0
+ dev: false
resolution: {integrity: sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==}
@@ -15294,6 +15268,7 @@ packages:
dependencies:
'@types/prop-types': 15.7.4
csstype: 3.1.3
+ dev: false
resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==}
@@ -26606,6 +26581,7 @@ packages:
loose-envify: 1.4.0
react: 18.3.1
scheduler: 0.23.2
+ dev: false
resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==}
@@ -26670,16 +26646,6 @@ packages:
webpack: 5.96.1(@swc/[email protected])
dev: false
- resolution: {integrity: sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==}
- engines: {node: '>=0.10.0'}
- peerDependencies:
- react: ^19.0.0
- dependencies:
- react: 18.3.1
- scheduler: 0.25.0
- dev: true
-
resolution: {integrity: sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==}
engines: {node: '>=0.10.0'}
@@ -26942,6 +26908,7 @@ packages:
engines: {node: '>=0.10.0'}
dependencies:
loose-envify: 1.4.0
+ dev: false
resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==}
@@ -27685,6 +27652,7 @@ packages:
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
dependencies:
loose-envify: 1.4.0
+ dev: false
resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==}