docs: add new architecture docs section (#3558)

This commit is contained in:
Krzysztof Moch 2024-03-04 09:48:20 +01:00 committed by GitHub
parent d505de5910
commit c0aa3d6453
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{
"caching": "Caching",
"misc": "Misc",
"debug": "Debugging"
"debug": "Debugging",
"new-arch": "New Architecture"
}

View File

@ -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. <br/> 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.