0.3.1 • Published 2 years ago

react-native-fula v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-fula

This package is a bridge to use the Fula libp2p protocols in the react-native

Installation

npm install react-native-fula

Usage

import { file, fula } from 'react-native-fula';

// ...

//Connect to the box
const status = await fula.connect("[Your Box address]");

//Store file to the box
const cid = await file.send(decodeURI("[File path]"));

//Get file path form the box
const filepath = await file.receive(cid);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT