Skip to content

🎥 Make videos programmatically with React

remove array schema, this is not supported

Jonny Burger75d55d73a7ba
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index ec6d08a76b..e7aed679c3 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -60,12 +60,7 @@ import RemoteVideo from './RemoteVideo';
import {RetryDelayRender} from './RetryDelayRender';
import RiveVehicle from './Rive/RiveExample';
import {ScalePath} from './ScalePath';
-import {
- ArrayTest,
- SchemaTest,
- schemaArrayTestSchema,
- schemaTestSchema,
-} from './SchemaTest';
+import {SchemaTest, schemaTestSchema} from './SchemaTest';
import {Scripts} from './Scripts';
import {WidthHeightSequences} from './Sequence/WidthHeightSequences';
import CircleTest from './Shapes/CircleTest';
@@ -1498,16 +1493,7 @@ export const Index: React.FC = () => {
durationInFrames={150}
schema={schemaTestSchema}
/>
- <Composition
- id="array-schema"
- component={ArrayTest}
- width={1200}
- height={630}
- fps={30}
- durationInFrames={150}
- schema={schemaArrayTestSchema}
- defaultProps={[]}
- />
+
<Composition
id="zod-v4-schema-test"
component={ZodV4SchemaTest}
diff --git a/packages/example/src/SchemaTest/index.tsx b/packages/example/src/SchemaTest/index.tsx
index 66aa19fbc0..70e9018443 100644
--- a/packages/example/src/SchemaTest/index.tsx
+++ b/packages/example/src/SchemaTest/index.tsx
@@ -35,20 +35,6 @@ export const schemaTestSchema = z.object({
tuple: z.tuple([z.string(), z.number(), z.object({a: z.string()})]),
});
-export const schemaArrayTestSchema = z.array(z.number());
-
-export const ArrayTest: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- fontSize: 80,
- }}
- />
- );
-};
-
export const SchemaTest: React.FC<z.infer<typeof schemaTestSchema>> = ({
delay,
title,