From c0aa3d6453d484c862de3ad55a1dc6fc64f132bf Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Mon, 4 Mar 2024 09:48:20 +0100 Subject: [PATCH] docs: add new architecture docs section (#3558) --- docs/pages/other/_meta.json | 3 ++- docs/pages/other/new-arch.md | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 docs/pages/other/new-arch.md diff --git a/docs/pages/other/_meta.json b/docs/pages/other/_meta.json index ca7f6658..2280f458 100644 --- a/docs/pages/other/_meta.json +++ b/docs/pages/other/_meta.json @@ -1,5 +1,6 @@ { "caching": "Caching", "misc": "Misc", - "debug": "Debugging" + "debug": "Debugging", + "new-arch": "New Architecture" } \ No newline at end of file diff --git a/docs/pages/other/new-arch.md b/docs/pages/other/new-arch.md new file mode 100644 index 00000000..fb761663 --- /dev/null +++ b/docs/pages/other/new-arch.md @@ -0,0 +1,25 @@ +# New Architecture + +## Fabric +Library currently does not support Fabric. We are working on it. In the meantime, you can use Interop Layer. + +## Interop Layer +You can use this library on New Architecture by using Interop Layer.
To use Interop Layer you need to have `react-native` >= `0.72.0` & `react-native-video` >= `6.0.0-beta.5`. + +For `react-native` < `0.74` you need to add config in `react-native.config.js` file. + +```javascript +module.exports = { + project: { + android: { + unstable_reactLegacyComponentNames: ['Video'], + }, + ios: { + unstable_reactLegacyComponentNames: ['Video'], + }, + }, +}; +``` + +## Bridgeless Mode +Library currently does not support Bridgeless Mode. We are working on it.