Skip to content

Issue on react native #71

Open
Open
@kusaljr

Description

@kusaljr

ERROR Warning: Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.

Error message:

TypeError: _nodejsMobileReactNative.default.channel.removeListener is not a function (it is undefined)

  React.useEffect(() => {
    listener.addListener("pub", handleNodeMessage);
    nodejs.channel.post('pub', 'Hello from react-native!')

    return () => {
      listener.removeListener("pub", handleNodeMessage);
    };
  }, []);

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions