js-dag-service
js-dag-service copied to clipboard
React-Native support
Describe the bug Uncaught Error Cannot read property '__extends' of undefined
To Reproduce Setup a RN project with rn-nodeify with following post-install script "postinstall": "rn-nodeify --install events,dgram --hack" rm -rf ./node_modules npm install cd ios pod deintegrate pod install
import { BlockStore,Peer } from '@textile/ipfs-lite'
import { MemoryDatastore } from '@textile/ipfs-lite/dist/setup/index.js';
const store = new BlockStore(new MemoryDatastore()); <-- error
const lite = new Peer(store, host);
await lite.start()
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- iOS 17.0
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: iOS 17.0
Additional context Add any other context about the problem here.