🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

react-native-video-cache

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-video-cache

Boost performance on online video loading and caching

latest
Source
npmnpm
Version
2.7.4
Version published
Weekly downloads
2.9K
-26.17%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-video-cache

  • Fixed its android conflict with react native v0.67 (gradle > 0.7)

Boost performance on online video loading and caching

Use following libraries to do the heavy lifting.

  • iOS: https://github.com/ChangbaDevs/KTVHTTPCache
  • Android: https://github.com/danikula/AndroidVideoCache

Getting started

$ yarn add react-native-video-cache

Mostly automatic installation

$ react-native link react-native-video-cache

Usage

import convertToProxyURL from 'react-native-video-cache';
...
<Video source={{uri: convertToProxyURL(originalURL)}} />

Install on android

Edit your android/build.gradle file and add the following lines:

        maven {
            url "$rootDir/../node_modules/react-native-video-cache/android/libs"
        }

to your allprojects/repositories

Keywords

react-native

FAQs

Package last updated on 28 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts