Skip to content

🎥 Make videos programmatically with React

Update RemotionRiveCanvas.tsx

Jonny Burger4ab3ece7bd8c
diff --git a/packages/rive/src/RemotionRiveCanvas.tsx b/packages/rive/src/RemotionRiveCanvas.tsx
index 1e7a6fce6c..6be73866ed 100644
--- a/packages/rive/src/RemotionRiveCanvas.tsx
+++ b/packages/rive/src/RemotionRiveCanvas.tsx
@@ -18,7 +18,7 @@ import type {
} from './map-enums.js';
import {mapToAlignment, mapToFit} from './map-enums.js';
-type onLoadCallback = (rive: RiveCanvas) => void
+type onLoadCallback = (rive: RiveCanvas) => void;
interface RiveProps {
src: string;
@@ -29,8 +29,6 @@ interface RiveProps {
onLoad?: onLoadCallback | null;
}
-
-
export const RemotionRiveCanvas: React.FC<RiveProps> = ({
src,
fit = 'contain',