Remove complex ios steps from README, rnpm is better
This commit is contained in:
parent
8eb36e6100
commit
b885d9dce0
13
README.md
13
README.md
@ -11,19 +11,12 @@ Run `npm install react-native-video --save`
|
|||||||
|
|
||||||
#### iOS
|
#### iOS
|
||||||
|
|
||||||
1. Open your project in XCode, right click on `Libraries` and click `Add Files to "Your Project Name"`
|
Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video`
|
||||||
*   (use the RCTVideo project rather than the one pictured in screenshot).
|
|
||||||
2. Add `libRTCVideo.a` to `Build Phases -> Link Binary With Libraries`
|
|
||||||
.
|
|
||||||
3. Add `.mp4` video file to project and to `Build Phases -> Copy Bundle Resources`
|
|
||||||
4. Whenever you want to use it within React code now you can: `var Video =
|
|
||||||
require('react-native-video').default;` or just `import Video from 'react-native-video'`.
|
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
First, copy your video file to android/app/src/main/res/raw/
|
First, copy your video file to `android/app/src/main/res/raw/`, then
|
||||||
|
make the following additions to the given files:
|
||||||
Then make the following additions to the given files.
|
|
||||||
|
|
||||||
**android/settings.gradle**
|
**android/settings.gradle**
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user