Repository: zhigang1992/react-native-video-cache Branch: master Commit: 5a3de4bafd4a Files: 72 Total size: 141.1 KB Directory structure: gitextract_g1j7ygd_/ ├── .gitattributes ├── .gitignore ├── .npmignore ├── README.md ├── android/ │ ├── README.md │ ├── build.gradle │ ├── libs/ │ │ └── com/ │ │ └── danikula/ │ │ └── videocache/ │ │ ├── 2.7.1/ │ │ │ ├── videocache-2.7.1.aar │ │ │ └── videocache-2.7.1.pom │ │ └── maven-metadata-local.xml │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ └── java/ │ └── com/ │ └── reactnative/ │ └── videocache/ │ ├── VideoCacheModule.java │ └── VideoCachePackage.java ├── example/ │ ├── .buckconfig │ ├── .flowconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .watchmanconfig │ ├── App.js │ ├── __tests__/ │ │ └── App-test.js │ ├── android/ │ │ ├── app/ │ │ │ ├── BUCK │ │ │ ├── build.gradle │ │ │ ├── build_defs.bzl │ │ │ ├── proguard-rules.pro │ │ │ └── src/ │ │ │ ├── debug/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── java/ │ │ │ │ └── com/ │ │ │ │ └── example/ │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res/ │ │ │ └── values/ │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle/ │ │ │ └── wrapper/ │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── keystores/ │ │ │ ├── BUCK │ │ │ └── debug.keystore.properties │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── index.js │ ├── ios/ │ │ ├── .gitignore │ │ ├── Podfile │ │ ├── example/ │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Base.lproj/ │ │ │ │ └── LaunchScreen.xib │ │ │ ├── Images.xcassets/ │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ └── main.m │ │ ├── example-tvOS/ │ │ │ └── Info.plist │ │ ├── example-tvOSTests/ │ │ │ └── Info.plist │ │ ├── example.xcodeproj/ │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata/ │ │ │ └── xcschemes/ │ │ │ ├── example-tvOS.xcscheme │ │ │ └── example.xcscheme │ │ ├── example.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── exampleTests/ │ │ ├── Info.plist │ │ └── exampleTests.m │ ├── metro.config.js │ └── package.json ├── index.d.ts ├── index.js ├── index.web.js ├── ios/ │ ├── VideoCache.h │ ├── VideoCache.m │ ├── VideoCache.xcodeproj/ │ │ └── project.pbxproj │ └── VideoCache.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ └── IDEWorkspaceChecks.plist ├── package.json ├── react-native-video-cache.podspec └── scripts/ └── examples_postinstall.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ *.pbxproj -text ================================================ FILE: .gitignore ================================================ # OSX # .DS_Store # node.js # node_modules/ npm-debug.log yarn-error.log # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IntelliJ # build/ .idea .gradle local.properties *.iml # BUCK buck-out/ \.buckd/ *.keystore ================================================ FILE: .npmignore ================================================ example ================================================ FILE: README.md ================================================ # 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 ```javascript import convertToProxyURL from 'react-native-video-cache'; ...