🎥 Make videos programmatically with React
Merge branch 'v4' into 2264-remove-react-native-web-alias-but-add-it-to-skia
Jonny Burger724d92fbece9
diff --cc packages/docs/docs/4-0-migration.mdindex 2f0e91025d,ef0dec9daf..11897011bf--- a/packages/docs/docs/4-0-migration.md+++ b/packages/docs/docs/4-0-migration.md@@@ -194,24 -194,30 +194,52 @@@ The `WebpackOverrideFn` type useful foIf you encoded the path by yourself until now, don't do so anymore to avoid double encoding.+## `react-native` no longer aliases to `react-native-web`++Remotion no longer aliases `react-native` automatically to `react-native-web`.+If you are using `react-native-web`, override the Webpack config like this to restore the previous behavior:++```ts twoslash title="remotion.config.ts"+import { Config } from "@remotion/cli/config";++Config.overrideWebpackConfig((config) => {+ return {+ ...config,+ resolve: {+ ...config.resolve,+ alias: {+ ...config.resolve?.alias,+ "react-native$": "react-native-web",+ },+ },+ };+});+```+++ ## The `TComposition` type now includes a Zod schema++ The `TComposition` type now has two generic arguments:++ ```ts+ export type TComposition<Schema extends z.ZodTypeAny, Props> = {};+ ```++ If you need a type for a generic composition, you can use the new `AnyComposition` type:++ ```ts+ import { AnyComposition } from "remotion";++ const composition: AnyComposition = {+ width: 1920,+ height: 1080,+ // ...+ };+ ```++ ## `getCanExtractFramesFast()` function has been removed++ The [`getCanExtractFramesFast()`](/docs/renderer/get-can-extract-frames-fast) function has been removed, since frames can always be extracted fast now using `<OffthreadVideo>`.++ **How to upgrade:**++ You can now remove your re-encoding logic!