New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-go-ipfs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-go-ipfs

Embeded go-ipfs instance exposed through a js class with asynchronous methods. Alpha software, use at your own risk!

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-7.14%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-go-ipfs

Embeded go-ipfs instance exposed through a js class with asynchronous methods. Alpha software, use at your own risk.

Getting started

$ npm install react-native-go-ipfs --save

Android specific

You need to add:

maven { url "${rootDir.getPath()}/../node_modules/react-native-go-ipfs/android/local_repo" }

to your react native app's android/build.gradle allprojects.repositories like shown below

allprojects {
    repositories {
        maven { url "${rootDir.getPath()}/../node_modules/react-native-go-ipfs/android/local_repo" }
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

This shouldn't be needed as soon as we publish the maven packages.

iOS specific

You need to add

pod 'GomobileIPFS', :path => '../node_modules/react-native-go-ipfs/ios/GomobileIPFS'

to your app's ios/Podfile like shown below

target 'app' do
  # Pods for app
  pod 'GomobileIPFS', :path => '../node_modules/react-native-go-ipfs/ios/GomobileIPFS'

Usage

import IPFS from "react-native-go-ipfs";

const ipfs = new IPFS();

await ipfs.start();

const response = await ipfs.command("/id");
console.log(response);

await ipfs.stop();

Keywords

FAQs

Package last updated on 30 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc