Skip to content

🎥 Make videos programmatically with React

Skia 2.0

Jonny Burger16f6de75d11b
diff --git a/packages/docs/package.json b/packages/docs/package.json
index cda1ef13f5..defb93e72a 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -73,7 +73,7 @@
"@remotion/webcodecs": "workspace:*",
"@remotion/zod-types": "workspace:*",
"@rive-app/canvas-advanced": "2.3.0",
- "@shopify/react-native-skia": "1.6.0",
+ "@shopify/react-native-skia": "2.0.0",
"@swc/core": "^1.3.80",
"@types/uuid": "^8.3.4",
"chalk": "4.1.2",
diff --git a/packages/example/package.json b/packages/example/package.json
index aab70104d1..3f18a220f8 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -66,7 +66,7 @@
"@remotion/transitions": "workspace:*",
"@remotion/media-parser": "workspace:*",
"@remotion/zod-types": "workspace:*",
- "@shopify/react-native-skia": "1.6.0",
+ "@shopify/react-native-skia": "2.0.0",
"@types/express": "^4.17.11",
"@types/hls.js": "^0.13.3",
"@types/opentype.js": "^1.3.4",
diff --git a/packages/skia/package.json b/packages/skia/package.json
index cd591c7c79..e68f9ca36d 100644
--- a/packages/skia/package.json
+++ b/packages/skia/package.json
@@ -30,8 +30,8 @@
},
"devDependencies": {
"@remotion/bundler": "workspace:*",
- "@shopify/react-native-skia": "1.6.0",
- "canvaskit-wasm": "0.39.1",
+ "@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",
diff --git a/packages/template-skia/package.json b/packages/template-skia/package.json
index dafb478a95..9d63cb682e 100644
--- a/packages/template-skia/package.json
+++ b/packages/template-skia/package.json
@@ -15,9 +15,9 @@
"@remotion/cli": "workspace:*",
"@remotion/skia": "workspace:*",
"@remotion/zod-types": "workspace:*",
- "@shopify/react-native-skia": "1.6.0",
- "react": "18.3.1",
- "react-dom": "18.3.1",
+ "@shopify/react-native-skia": "2.0.0",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"remotion": "workspace:*",
"zod": "3.22.3"
},
diff --git a/packages/template-skia/src/SkiaNeon.tsx b/packages/template-skia/src/SkiaNeon.tsx
index 5b510a90ed..fdb459673f 100644
--- a/packages/template-skia/src/SkiaNeon.tsx
+++ b/packages/template-skia/src/SkiaNeon.tsx
@@ -123,40 +123,61 @@ export const SkiaNeon: React.FC<{
</Group>
<Path
path={path}
- color="transparent"
strokeCap="round"
strokeJoin="round"
end={progress}
+ style="stroke"
+ strokeWidth={15}
>
- <Paint style="stroke" strokeWidth={15}>
- <LinearGradient
- colors={colors}
- start={topLeft(bounds)}
- end={topRight(bounds)}
- />
- <Blur
- blur={interpolate(progress, [0, 0.5, 1], [0, blur1 * 2, blur1])}
- />
- </Paint>
- <Paint style="stroke" strokeWidth={4}>
- <LinearGradient
- colors={colors}
- start={topLeft(bounds)}
- end={topRight(bounds)}
- />
- <Blur
- blur={interpolate(progress, [0, 0.5, 1], [0, blur2 * 2, blur2])}
- />
- </Paint>
- <Paint style="stroke" strokeWidth={1}>
- <LinearGradient
- colors={colors}
- start={topLeft(bounds)}
- end={topRight(bounds)}
- />
- </Paint>
- <Paint style="stroke" strokeWidth={2.5} color="white" />
+ <LinearGradient
+ colors={colors}
+ start={topLeft(bounds)}
+ end={topRight(bounds)}
+ />
+ <Blur
+ blur={interpolate(progress, [0, 0.5, 1], [0, blur1 * 2, blur1])}
+ />
</Path>
+ <Path
+ path={path}
+ strokeCap="round"
+ strokeJoin="round"
+ end={progress}
+ style="stroke"
+ strokeWidth={4}
+ >
+ <LinearGradient
+ colors={colors}
+ start={topLeft(bounds)}
+ end={topRight(bounds)}
+ />
+ <Blur
+ blur={interpolate(progress, [0, 0.5, 1], [0, blur2 * 2, blur2])}
+ />
+ </Path>
+ <Path
+ path={path}
+ strokeCap="round"
+ strokeJoin="round"
+ end={progress}
+ style="stroke"
+ strokeWidth={1}
+ >
+ <LinearGradient
+ colors={colors}
+ start={topLeft(bounds)}
+ end={topRight(bounds)}
+ />
+ </Path>
+ <Path
+ path={path}
+ strokeCap="round"
+ strokeJoin="round"
+ end={progress}
+ style="stroke"
+ strokeWidth={2.5}
+ color="white"
+ ></Path>
</React.Fragment>
))}
</>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 70f34edfe7..6a9a1ab439 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -696,8 +696,8 @@ importers:
specifier: 2.3.0
version: 2.3.0
'@shopify/react-native-skia':
- specifier: 1.6.0
- version: 1.6.0([email protected])
+ specifier: 2.0.0
+ version: 2.0.0([email protected])
'@swc/core':
specifier: ^1.3.80
version: 1.3.80
@@ -1065,8 +1065,8 @@ importers:
specifier: workspace:*
version: link:../zod-types
'@shopify/react-native-skia':
- specifier: 1.6.0
- version: 1.6.0([email protected])
+ specifier: 2.0.0
+ version: 2.0.0([email protected])
'@types/express':
specifier: ^4.17.11
version: 4.17.13
@@ -2035,8 +2035,8 @@ importers:
specifier: workspace:*
version: link:../eslint-config-internal
'@shopify/react-native-skia':
- specifier: 1.6.0
- version: 1.6.0([email protected])
+ specifier: 2.0.0
+ version: 2.0.0([email protected])
'@types/react':
specifier: 18.3.1
version: 18.3.1
@@ -2047,8 +2047,8 @@ importers:
specifier: ^0.69.2
version: 0.69.2
canvaskit-wasm:
- specifier: 0.39.1
- version: 0.39.1
+ specifier: 0.40.0
+ version: 0.40.0
eslint:
specifier: 9.19.0
version: 9.19.0
@@ -2998,14 +2998,14 @@ importers:
specifier: workspace:*
version: link:../zod-types
'@shopify/react-native-skia':
- specifier: 1.6.0
- version: 1.6.0([email protected])
+ specifier: 2.0.0
+ version: 2.0.0([email protected])
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])
remotion:
specifier: workspace:*
version: link:../core
@@ -13540,39 +13540,40 @@ packages:
resolution: {integrity: sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==}
dev: false
- resolution: {integrity: sha512-w7Pg6w5N7/KMyPFeRtcXdTPSS9Eid3z15aBXjU3JHJBNoIQCNPwX8J0G2g8nTU+w/Vb34dFL00/Va45HEGUqBQ==}
+ resolution: {integrity: sha512-h7nKK3wABX4E4yOlyXDryfA+rBKw1zkfOOiTWQ6gqCn4kACNBnPSrmkTTWnoers+axgSFSqudhcZh0teaa3QHA==}
hasBin: true
peerDependencies:
- react: '>=18.0'
- react-native: '>=0.64'
- react-native-reanimated: '>=2.0.0'
+ 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.39.1
+ canvaskit-wasm: 0.40.0
react: 18.3.1
- react-reconciler: 0.27.0([email protected])
+ react-reconciler: 0.31.0([email protected])
+ dev: true
- resolution: {integrity: sha512-w7Pg6w5N7/KMyPFeRtcXdTPSS9Eid3z15aBXjU3JHJBNoIQCNPwX8J0G2g8nTU+w/Vb34dFL00/Va45HEGUqBQ==}
+ resolution: {integrity: sha512-h7nKK3wABX4E4yOlyXDryfA+rBKw1zkfOOiTWQ6gqCn4kACNBnPSrmkTTWnoers+axgSFSqudhcZh0teaa3QHA==}
hasBin: true
peerDependencies:
- react: '>=18.0'
- react-native: '>=0.64'
- react-native-reanimated: '>=2.0.0'
+ 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.39.1
+ canvaskit-wasm: 0.40.0
react: 19.0.0
- react-reconciler: 0.27.0([email protected])
+ react-reconciler: 0.31.0([email protected])
dev: false
/@sideway/[email protected]:
@@ -17313,8 +17314,8 @@ packages:
resolution: {integrity: sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==}
- resolution: {integrity: sha512-Gy3lCmhUdKq+8bvDrs9t8+qf7RvcjuQn+we7vTVVyqgOVO1UVfHpsnBxkTZw+R4ApEJ3D5fKySl9TU11hmjl/A==}
+ resolution: {integrity: sha512-Od2o+ZmoEw9PBdN/yCGvzfu0WVqlufBPEWNG452wY7E9aT8RBE+ChpZF526doOlg7zumO4iCS+RAeht4P0Gbpw==}
dependencies:
'@webgpu/types': 0.1.21
@@ -26669,26 +26670,15 @@ packages:
webpack: 5.96.1(@swc/[email protected])
dev: false
- resolution: {integrity: sha512-HmMDKciQjYmBRGuuhIaKA1ba/7a+UsM5FzOZsMO2JYHt9Jh8reCb7j1eDC95NOyUlKM9KRyvdx0flBuDvYSBoA==}
+ resolution: {integrity: sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==}
engines: {node: '>=0.10.0'}
peerDependencies:
- react: ^18.0.0
+ react: ^19.0.0
dependencies:
- loose-envify: 1.4.0
react: 18.3.1
- scheduler: 0.21.0
-
- resolution: {integrity: sha512-HmMDKciQjYmBRGuuhIaKA1ba/7a+UsM5FzOZsMO2JYHt9Jh8reCb7j1eDC95NOyUlKM9KRyvdx0flBuDvYSBoA==}
- engines: {node: '>=0.10.0'}
- peerDependencies:
- react: ^18.0.0
- dependencies:
- loose-envify: 1.4.0
- react: 19.0.0
- scheduler: 0.21.0
- dev: false
+ scheduler: 0.25.0
+ dev: true
resolution: {integrity: sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==}
@@ -27689,6 +27679,7 @@ packages:
resolution: {integrity: sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==}
dependencies:
loose-envify: 1.4.0
+ dev: false
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}