react-native-video/examples/video-caching/README.md
2018-07-19 02:06:09 +02:00

979 B

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