docs: add visionOS platform (#3477)

* docs: add visionOS platform

* update docs
This commit is contained in:
Krzysztof Moch
2024-01-16 07:21:38 +01:00
committed by GitHub
parent cf3ebb7f15
commit 53359a248b
5 changed files with 74 additions and 55 deletions

View File

@@ -157,6 +157,22 @@ Select RCTVideo-tvOS
</details>
</details>
<details>
<summary>visionOS</summary>
## visionOS
Add patch for `promises` pods to your pod files to make it work with `visionOS` target.
> This patch is required only for `visionOS` target and will be removed in future.
```diff
+ pod 'PromisesSwift', :podspec => '../node_modules/react-native-video/ios/patches/PromisesSwift.podspec'
+ pod 'PromisesObjC', :podspec => '../node_modules/react-native-video/ios/patches/PromisesObjC.podspec'
```
**Remember** to run `pod install` after adding this patch.
After this you can follow the same steps as for `iOS` target.
</details>
## Examples
Run `yarn xbasic install` in the root directory before running any of the examples.