This is a minimal reproduction for facebook/react-native#34105
This app contains a bare react-native init app, modified with a custom iOS event emitter. There are modifications made to RCTEventEmitter via patch-package in order to demonstrate the issue as explained by @thomasttvo in the issue above.
- Run yarn / npm to install packages and run patch-package
- Open the workspace in XCode
- Run the app from XCode and open the logging console.
- Note the
callableJSModules
logs are all 1 - Reload the app via the dev menu
- Note that now the
callableJSModule
logs are alternating between 0 and 1.