🎥 Make videos programmatically with React
install instructions
Jonny Burger7f3563c05a5c
diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.mdindex ae1700e2a8..a319a4801f 100644--- a/packages/docs/docs/skia/skia.md+++ b/packages/docs/docs/skia/skia.md@@ -3,3 +3,62 @@ id: skiasidebar_label: Overviewtitle: "@remotion/skia"---++import Tabs from '@theme/Tabs';+import TabItem from '@theme/TabItem';++This package provides utilities useful for integrating [React Native Skia](https://github.com/Shopify/react-native-skia) with Remotion.++## Installation++Install both `@remotion/skia` as well as `@shopify/react-native-skia`.++<Tabs+defaultValue="npm"+values={[+{ label: 'npm', value: 'npm', },+{ label: 'yarn', value: 'yarn', },+{ label: 'pnpm', value: 'pnpm', },+]+}>+<TabItem value="npm">++```bash+npm i @remotion/skia @shopify/react-native-skia+```++ </TabItem>++ <TabItem value="yarn">++```bash+yarn add @remotion/skia @shopify/react-native-skia+```++ </TabItem>++ <TabItem value="pnpm">++```bash+pnpm i @remotion/skia @shopify/react-native-skia+```++ </TabItem>+</Tabs>++Also update **all the other Remotion packages** to have the same version: `remotion`, `@remotion/cli` and others.++:::note+Make sure no package version number has a `^` character in front of it as it can lead to a version conflict.+:::++[Override the Webpack config](/docs/webpack) by using `enableSkia()`.++```ts twoslash title="remotion.config.ts"+import { Config } from "remotion";+import { enableSkia } from "@remotion/skia";++Config.Bundling.overrideWebpackConfig((currentConfiguration) => {+ return enableSkia(currentConfiguration);+});+```diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex 7e0423fb74..db89f2abbf 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -31,6 +31,7 @@"@remotion/player": "3.0.28","@remotion/preload": "3.0.28","@remotion/renderer": "3.0.28",+ "@remotion/skia": "3.0.28","@remotion/three": "3.0.28","@splitbee/web": "^0.2.4","chalk": "4.1.2",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex da48a5cee5..59c82880cf 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -264,6 +264,7 @@ importers:'@remotion/player': 3.0.28'@remotion/preload': 3.0.28'@remotion/renderer': 3.0.28+ '@remotion/skia': 3.0.28'@remotion/three': 3.0.28'@splitbee/web': ^0.2.4'@tsconfig/docusaurus': ^1.0.5@@ -306,6 +307,7 @@ importers:'@remotion/player': link:../player'@remotion/preload': link:../preload'@remotion/renderer': link:../renderer+ '@remotion/skia': link:../skia'@remotion/three': link:../three'@splitbee/web': 0.2.4chalk: 4.1.2@@ -331,7 +333,7 @@ importers:'@types/react': 18.0.1eslint: 8.13.0typescript: 4.7.2- url-loader: 4.1.1_csgzzuwaerdr4d7s3u52mzcn7m+ url-loader: [email protected]packages/eslint-config:specifiers:@@ -9198,7 +9200,7 @@ packages:dev: false/asap/2.0.6:- resolution: {integrity: sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=}+ resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}/asn1/0.2.4:resolution: {integrity: sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==}@@ -12351,6 +12353,7 @@ packages:loader-utils: 2.0.0schema-utils: 3.1.1webpack: 5.72.0+ dev: false/filesize/6.1.0:resolution: {integrity: sha512-LpCHtPQ3sFx67z+uh2HnSyWSLLu5Jxo21795uRDuar/EOuYWXib5EmPaGIBuSnRqH2IODiKA2k5re/K9OnN/Yg==}@@ -19273,7 +19276,7 @@ packages:split-string: 3.1.0/setimmediate/1.0.5:- resolution: {integrity: sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=}+ resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==}/setprototypeof/1.1.0:resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==}@@ -21166,6 +21169,23 @@ packages:mime-types: 2.1.33schema-utils: 3.1.1webpack: 5.72.0+ dev: false++ /url-loader/[email protected]:+ resolution: {integrity: sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==}+ engines: {node: '>= 10.13.0'}+ peerDependencies:+ file-loader: '*'+ webpack: ^4.0.0 || ^5.0.0+ peerDependenciesMeta:+ file-loader:+ optional: true+ dependencies:+ loader-utils: 2.0.0+ mime-types: 2.1.33+ schema-utils: 3.1.1+ webpack: 5.72.0+ dev: true/url-parse-lax/3.0.0:resolution: {integrity: sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=}