$ npm install react-native-web-view-local-cache --save
$ react-native link react-native-web-view-local-cache
Libraries
Add Files to [your project's name]
node_modules
react-native-web-view-local-cache
and add RNWebViewLocalCache.xcodeproj
libRNWebViewLocalCache.a
to your project's Build Phases
Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNWebViewLocalCachePackage;
to the imports at the top of the filenew RNWebViewLocalCachePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-web-view-local-cache'
project(':react-native-web-view-local-cache').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-web-view-local-cache/android')
android/app/build.gradle
:
compile project(':react-native-web-view-local-cache')
RNWebViewLocalCache.sln
in node_modules/react-native-web-view-local-cache/windows/RNWebViewLocalCache.sln
folder to their solution, reference from their app.MainPage.cs
appusing Cl.Json.RNWebViewLocalCache;
to the usings at the top of the filenew RNWebViewLocalCachePackage()
to the List<IReactPackage>
returned by the Packages
methodimport RNWebViewLocalCache from 'react-native-web-view-local-cache';
// TODO: What do with the module?
RNWebViewLocalCache;