Commit b303f991 authored by Julien K's avatar Julien K Committed by Matt Apperson
Browse files

Added tvOS paltform support (#682)

* [tvOS] Update podspec

* [tvOS] Add tvOS target

* Update README.md

* [docs] Folder that contains pictures and content for documentation

* tvOS Readme

* [JPEG] Update image to JPEG
parent 7f2cd875
Loading
Loading
Loading
Loading
+24 −0
Changes for README.md: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,30 @@ If you would like to allow other apps to play music over your video component, a
```
Note: you can also use the `ignoreSilentSwitch` prop, shown below.

#### tvOS

Run `react-native link` to link the react-native-video library.

`react-native link` don’t works properly with the tvOS target so we need to add the library manually.

First select your project in Xcode.

<img src="./docs/tvOS-step-1.jpg" width="40%">

After that, select the tvOS target of your application and select « General » tab

<img src="./docs/tvOS-step-2.jpg" width="40%">

Scroll to « Linked Frameworks and Libraries » and tap on the + button

<img src="./docs/tvOS-step-3.jpg" width="40%">

Select RCTVideo-tvOS

<img src="./docs/tvOS-step-4.jpg" width="40%">

That’s all, you can use react-native-video for your tvOS application

#### Android

Run `react-native link` to link the react-native-video library.

docs/tvOS-step-1.jpg

0 → 100644
+25.5 KiB
Loading image diff...

docs/tvOS-step-2.jpg

0 → 100644
+45 KiB
Loading image diff...

docs/tvOS-step-3.jpg

0 → 100644
+73.8 KiB
Loading image diff...

docs/tvOS-step-4.jpg

0 → 100644
+76.8 KiB
Loading image diff...
Loading