Closed mrousavy closed 3 years ago
@mrousavy I have no clear ideas offhand, but would suggest you start debugging from here, which is where the logs come out of the engine.
@alloy I've tried tracking it down like this:
setUpDeveloperTools.js:L68-L77
notices that console._isPolyfilled
is false, so it logs that "warning" to my console (which obviously works, no idea why it doesn't just use it then?)console.js:L546
checks if the native console hook is available, and only then prepares the console polyfillJSIExecutor.cpp:L515
binds the native console hook that we required in the step above, but somehow this fails so everything else also fails to polyfill.I'm thinking if this maybe has something to do with Reanimated, since that also creates a separate Runtime instance - maybe there are conflicts introduced by this?
Okay the code I linked doesn't even get called. It should get called with RCTJSIExecutorRuntimeInstaller
, but in RCTCxxBridge.mm
it enters this if
, causing the installer to get skipped.
I believe this has something to do with how react-native-navigation sets up the bridge (see https://github.com/wix/react-native-navigation/pull/6835), still investigating.. 🕵️
Resolved! It was a reanimated issue. See: https://github.com/software-mansion/react-native-reanimated/pull/1704
Ah I see, good sleuthing :clap:
still have this problem with react-native-reanimated v2.0.0, hermes enabled in iOS
Since I upgraded from RN 0.63 to RN 0.64 (rc3) and enabled Hermes I cannot see my console.logs anymore.
The same thing in Flipper Logs.
Out put of
npx react-native --version
:Probably related