Remove complex ios steps from README, rnpm is better

This commit is contained in:
Brent Vatne 2016-04-12 14:33:46 -04:00
parent 8eb36e6100
commit b885d9dce0

View File

@ -11,19 +11,12 @@ Run `npm install react-native-video --save`
#### iOS
1. Open your project in XCode, right click on `Libraries` and click `Add Files to "Your Project Name"`
* ![Screenshot](http://url.brentvatne.ca/jQp8.png) ![Screenshot](http://url.brentvatne.ca/1gqUD.png) (use the RCTVideo project rather than the one pictured in screenshot).
2. Add `libRTCVideo.a` to `Build Phases -> Link Binary With Libraries`
![(Screenshot)](http://url.brentvatne.ca/g9Wp.png).
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'`.
Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video`
#### Android
First, copy your video file to android/app/src/main/res/raw/
Then make the following additions to the given files.
First, copy your video file to `android/app/src/main/res/raw/`, then
make the following additions to the given files:
**android/settings.gradle**
```