Update react-native link instructions with module name

Just calling react-native link is risky, it can cause double linking
This commit is contained in:
Hampton Maxwell 2018-07-31 11:25:17 -07:00 committed by GitHub
parent 2087d0a150
commit efb1fc7723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ yarn add react-native-video
<details>
<summary>iOS</summary>
Run `react-native link` to link the react-native-video library.
Run `react-native link react-native-video` to link the react-native-video library.
If you would like to allow other apps to play music over your video component, add:
@ -53,9 +53,7 @@ Note: you can also use the `ignoreSilentSwitch` prop, shown below.
<details>
<summary>tvOS</summary>
Run `react-native link` to link the react-native-video library.
`react-native link` doesnt work properly with the tvOS target so we need to add the library manually.
`react-native link-video` doesnt work properly with the tvOS target so we need to add the library manually.
First select your project in Xcode.
@ -77,7 +75,7 @@ Select RCTVideo-tvOS
<details>
<summary>Android</summary>
Run `react-native link` to link the react-native-video library.
Run `react-native link react-native-video` to link the react-native-video library.
Or if you have trouble, make the following additions to the given files manually: