Skip to content

🎥 Make videos programmatically with React

add scripts tests

Jonny Burger7ff102605fae
diff --git a/packages/example/src/Scripts/index.tsx b/packages/example/src/Scripts/index.tsx
new file mode 100644
index 0000000000..3cec724a68
--- /dev/null
+++ b/packages/example/src/Scripts/index.tsx
@@ -0,0 +1,17 @@
+import React from 'react';
+import {AbsoluteFill} from 'remotion';
+
+// Test of Devanagari script and emojis,
+export const Scripts: React.FC = () => {
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: 'white',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}
+ >
+ <h1>पूर्वोत्तर में बीजेपी का मजबूत चेहरा 😁</h1>
+ </AbsoluteFill>
+ );
+};
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index f143522de5..8a80bb4750 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -5,6 +5,7 @@ import {ColorInterpolation} from './ColorInterpolation';
import {Framer} from './Framer';
import {MissingImg} from './MissingImg';
import RemoteVideo from './RemoteVideo';
+import {Scripts} from './Scripts';
import {SkipZeroFrame} from './SkipZeroFrame';
import {SeriesTesting} from './StaggerTesting';
import {TenFrameTester} from './TenFrameTester';
@@ -275,6 +276,14 @@ export const Index: React.FC = () => {
fps={30}
durationInFrames={100}
/>
+ <Composition
+ id="scripts"
+ component={Scripts}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
</>
);
};