This error occurs for me, using RN 0.76.1 and React 18.3.1.
Solved it by locally modifying the index.js file in node_modules:
node_modules/react-native-flic2/index.js:
if (this.nativeEvents && typeof this.nativeEvents.removeListener === 'function') {
this.nativeEvents.removeListener('scanResult', this.onScanResultFunction);
}
I don't think this change would be bad for everyone else, could it be considered to add this to the code base?
This error occurs for me, using RN 0.76.1 and React 18.3.1.
Solved it by locally modifying the index.js file in node_modules:
node_modules/react-native-flic2/index.js:
I don't think this change would be bad for everyone else, could it be considered to add this to the code base?