Closed alex-a-pereira closed 8 months ago
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Description
Hi! I've been trying to debug an issue (not relevant to this bug report) and I've found the
MessageQueue.spy
method which looks super helpful to debug with. However, when I enable spying on the message queue, integers are used instead of module/function names.This might be coincidence, but it looks like the issue only exists for messages passed from JS to Native, not the other way around (see screenshot below). So this might be an issue with my babel config or something (see babel config below).
React Native version:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Results
We expect that native modules/method names are displayed in logs similar to as described here. The format is a bit different as I passed in
true
instead of a callback function toMessageQueue.spy
- but I've validated that module/method names are missing when passing a callback function as well.Snack, code example, screenshot, or link to a repository:
Here's a screenshot of my logs
Note that the first log
AppRegistry.runApplication
is in correct format (direction is from native to JS). But the bottom two are calls from JS->native and have integers for the module/method.Babel Config