Moralis IPFS not supported in react native

Hey folks, Currently I am working on NFT marketplace using react native And I want to store NFTs on ipfs using Moralis.

This is my cody :

const image = “data:image/png;base64,iVBORw0KGgoAAA…”
const file = new Moralis.File(“image.png”, {base64 : image });
await file.saveIPFS();

When I console file object, it returns nothing.

Please tell me, is there any support of moralis ipfs with react native or not.?

Thanks :slight_smile:

1 Like

Hey @sumit-jamnani-infere, hope you are ok.

Moralis sdk its mainly javascript, so you should be able to create a function in JS for ipfs with moralis and use it with react native without any issue.

Check at https://docs.moralis.io/moralis-dapp/files/ipfs

Carlos Z