Open
Description
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);
};
}, []);