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