react-native-video/examples/video-caching
2019-01-24 13:15:58 +01:00
..
__tests__
android Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
ios fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
.babelrc Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.buckconfig
.flowconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.gitattributes
.gitignore
.watchmanconfig
App.ios.js fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
App.js
app.json
index.js
package.json
README.md
rn-cli.config.js fix: omit packager assets from caching (#1438) 2019-01-24 13:15:58 +01:00
update.sh

react-native-video caching example (currently only working on iOS)

How to verify that caching is working (iOS)

  1. run ./update.sh
  2. open ios/VideoCaching.xcworkspace
  3. build and run project in simulator
  4. after the video is loaded -> disconnect from the internet
  5. kill the application
  6. start the application again -> the video is there despite being offline :)

How to verify that you can build the project without the caching feature (iOS)

  1. In ios/Podfile apply the following changes
- pod 'react-native-video/VideoCaching', :path => '../node_modules/react-native-video/react-native-video.podspec'
+ pod 'react-native-video', :path => '../node_modules/react-native-video/react-native-video.podspec'
  1. run ./update.sh
  2. open ios/VideoCaching.xcworkspace
  3. build and run project in simulator
  4. after the video is loaded -> disconnect from the internet
  5. kill the application
  6. start the application again -> the video should not load