This package is a bridge to use the Fula protocols in the react-native. It uses WNFS to create the merkle dag from files and folders and transfer teh DAG using Graphsync to the nodes.
npm install react-native-fulaimport { fula } from 'react-native-fula'; // ... //Initialize the fula client, which creates the libp2p connection [peerId, cid, private_ref] = await fula.init('', ''); //private key of user's did which will be used to encrypt and store private key of generated peerId for this app, storePath which you can leave empty //Creates a Folder const cid = await fula.mkdir(valueString); //Write a file to the pth const cid = await fula.writeFile(valueString, ciduint8.toString());See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT