Skip to content

🎥 Make videos programmatically with React

add resources + templates

Jonny Burger484001577ad8
diff --git a/packages/docs/components/Experimental.tsx b/packages/docs/components/Experimental.tsx
new file mode 100644
index 0000000000..2b42b13392
--- /dev/null
+++ b/packages/docs/components/Experimental.tsx
@@ -0,0 +1,32 @@
+import React from "react";
+
+export const ExperimentalBadge: React.FC<{
+ children: React.ReactNode;
+}> = ({ children }) => {
+ return (
+ <div
+ style={{
+ backgroundColor: "rgba(246, 229, 141,0.3)",
+ borderRadius: 8,
+ padding: "12px 12px",
+ marginBottom: 24,
+ }}
+ >
+ <div
+ style={{
+ backgroundColor: "#f6e58d",
+ display: "inline-block",
+ padding: "3px 10px",
+ fontWeight: "bold",
+ borderRadius: 5,
+ fontSize: 14,
+ marginBottom: 10,
+ color: "black",
+ }}
+ >
+ EXPERIMENTAL
+ </div>
+ <div>{children}</div>
+ </div>
+ );
+};
diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.md
index cd363fee2f..3736ed60c9 100644
--- a/packages/docs/docs/skia/skia.md
+++ b/packages/docs/docs/skia/skia.md
@@ -6,9 +6,16 @@ title: "@remotion/skia"
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
+import {ExperimentalBadge} from '../../components/Experimental';
This package provides utilities useful for integrating [React Native Skia](https://github.com/Shopify/react-native-skia) with Remotion.
+<ExperimentalBadge>
+This package is currently a proof of technology.
+
+It may change in minor version updates. Monitor this documentation page to see breaking changes when upgrading.
+</ExperimentalBadge>
+
## Installation
Install, `@remotion/skia` as well as `@shopify/react-native-skia` and `react-native-web`.
@@ -83,6 +90,52 @@ import { registerRoot } from "remotion";
You can now start using the [`<SkiaCanvas>`](/docs/skia/skia-canvas) in your Remotion project.
+## Templates
+
+You can find the [starter template](https://github.com/remotion-dev/template-skia) here or install it using:
+
+<Tabs
+defaultValue="npm"
+values={[
+{ label: 'npm', value: 'npm', },
+{ label: 'yarn', value: 'yarn', },
+{ label: 'pnpm', value: 'pnpm', },
+]
+}>
+<TabItem value="npm">
+
+```bash
+npx create-video --skia
+```
+
+ </TabItem>
+
+ <TabItem value="yarn">
+
+```bash
+pnpm create video -- --skia
+```
+
+ </TabItem>
+
+ <TabItem value="pnpm">
+
+```bash
+yarn create video --skia
+```
+
+ </TabItem>
+</Tabs>
+
+## Known issues
+
+- A peer dependency conflict between `react-native` and `react-native-web` requires the `--force` for newer versions of npm.
+
+## Resources
+
+- [Example project by William Candillon](https://github.com/wcandillon/remotion-skia-tutorial)
+- [Tutorial for the example project](https://www.youtube.com/watch?v=-7MOoWN2_nk)
+
## APIs
- [`enableSkia()`](/docs/skia/enable-skia)