react-native-video/examples/video-caching
Nicolas Gonzalez e9008cfa9e merge CHANGELOG
2018-11-19 21:23:25 -06:00
..
__tests__ Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
android Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
ios merge CHANGELOG 2018-11-19 21:23:25 -06:00
.babelrc Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.buckconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.flowconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.gitattributes Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
.gitignore update example project and fix build errors 2018-07-17 14:36:03 +02:00
.watchmanconfig Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
App.ios.js Updated save function README, updated video-caching example to test saving function 2018-11-06 20:33:33 -06:00
App.js 'Disable' example for non iOS devices 2018-02-28 13:56:43 +01:00
app.json Initialize VideoCaching project 2018-02-28 13:45:17 +01:00
index.js 'Disable' example for non iOS devices 2018-02-28 13:56:43 +01:00
package.json update example project and fix build errors 2018-07-17 14:36:03 +02:00
README.md make video cache feature optional 2018-07-19 02:06:09 +02:00
rn-cli.config.js update example project and fix build errors 2018-07-17 14:36:03 +02:00
update.sh make video cache feature optional 2018-07-19 02:06:09 +02:00

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