From d4ce3adbf4d139276e9b452ed804e61653178834 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Sun, 27 Sep 2020 22:22:07 +0800 Subject: [PATCH] refactor: using RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD for sync method call --- README.md | 6 +- .../videocache/VideoCacheModule.java | 8 +-- example/App.js | 63 +++++++------------ example/ios/Podfile.lock | 4 +- ios/VideoCache.m | 21 +++---- .../xcshareddata/IDEWorkspaceChecks.plist | 8 +++ 6 files changed, 44 insertions(+), 66 deletions(-) create mode 100644 ios/VideoCache.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/README.md b/README.md index ca5d907..4d63eb3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ 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` @@ -17,10 +16,9 @@ Use following libraries to do the heavy lifting. `$ react-native link react-native-video-cache` ## Usage + ```javascript import convertToProxyURL from 'react-native-video-cache'; ... -const localProxiedURL = await convertToProxyURL(originalURL); -... -