Skip to content

Bug: (NOBRIDGE) ERROR Error: Cannot find native module 'XMTP'. #643

@humanagent

Description

@humanagent

The example app builds, the problem arises when I import the package, it gives the error.

import { useXmtp } from '@xmtp/react-native-sdk'
const { client } = useXmtp()

however the SDK is not installed because it uses aliases.

after trying several things, I managed to get the SDK working by adding the library to the build phase.

However, there is clearly an issue in the SDK because that should be added automatically.
I also noticed that the module was installed when the SDK was installed.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions