Skip to content

Commit

Permalink
fix: update integration guide for ios Caching
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier committed Nov 8, 2023
1 parent bee1699 commit 04db777
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add `use_frameworks! :linkage => :static` just under `platform :ios` in your ios

[See the example ios project for reference](examples/basic/ios/Podfile#L5)

### Using CocoaPods (required to enable caching)
### Using CocoaPods

Setup your Podfile like it is described in the [react-native documentation](https://facebook.github.io/react-native/docs/integration-with-existing-apps#configuring-cocoapods-dependencies).

Expand All @@ -50,15 +50,17 @@ Video only:
+ `pod 'react-native-video', :path => '../node_modules/react-native-video/react-native-video.podspec'`
end
```
### Enable custom feature in podfile file

Video with caching ([more info](other/caching.md)):
### Video caching

```diff
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
+ `pod 'react-native-video/VideoCaching', :path => '../node_modules/react-native-video/react-native-video.podspec'`
end
To enable Video caching usage, add following line in your podfile:
([more info here](other/caching.md))

```podfile
# enable Video caching
+ $RNVideoUseVideoCaching=true
```
### Enable custom feature in podfile file

#### Google IMA

Expand Down

0 comments on commit 04db777

Please sign in to comment.