Skip to content

React-Native support #523

Open
Open
@sleep9

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions