From 12959cd720471c4a80596ec42017742ca2b7cd64 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Tue, 3 Dec 2019 12:00:16 +0800 Subject: [PATCH] prepare for release --- README.md | 19 ++++++++++++++----- example/App.js | 4 ++-- index.d.ts | 1 + index.js | 2 +- package.json | 10 ++++------ 5 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 index.d.ts diff --git a/README.md b/README.md index 2f46da8..ca5d907 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,16 @@ # react-native-video-cache +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 -`$ npm install react-native-video-cache --save` +`$ yarn add react-native-video-cache` ### Mostly automatic installation @@ -10,8 +18,9 @@ ## Usage ```javascript -import VideoCache from 'react-native-video-cache'; - -// TODO: What to do with the module? -VideoCache; +import convertToProxyURL from 'react-native-video-cache'; +... +const localProxiedURL = await convertToProxyURL(originalURL); +... +