You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Hey @ugurdalkiran , @dylancom , may I wonder why did you change this event name? Because I've encountered an obscure bug with [email protected] on Android, New Arch, bridgeless facebook/react-native#44555, and narrowed it down to seemingly being caused by react-native-google-mobile-ads, and being fixed by this name change. I'd like to understand why it makes the difference (or may be I totally misunderstood and mis-troubleshoot my issue); and if it is in fact was causing problems to host RN app, perhaps to ask RN team if such problems can be auto-detected and warned about (or crash the app), because in my case the issue was not apparent at all.
Since I'm working on a completely new architecture now, I solved the problem by changing it this way. But I understand that it should be "topNative" in the default structure.
The reason will be displayed to describe this comment to others. Learn more.
hi @ugurdalkiran i'm from the react native core team! i'm curious what the original issue was that you fixed and how you arrived to this solution? just wanted to figure this out to see if there's an issue we need to fix in the core infrastructure!
The reason will be displayed to describe this comment to others. Learn more.
hi @ugurdalkiran i'm from the react native core team! i'm curious what the original issue was that you fixed and how you arrived to this solution? just wanted to figure this out to see if there's an issue we need to fix in the core infrastructure!
thanks to @dmytrorykun i understand why this change needed to be made. essentially from very very legacy stuff, we have two different events types - events that go into the react event system, and events that get dispatched as a result of those events. in practice these names ended up being the same (i.e., i dispatch a event string to react, it will dispatch the same event string out). however, in the legacy android architecture, we still allowed these event strings to be different (i.e., dispatch "topNative" to React, which would then dispatch "topNativeEvent"), which is what caused this to redbox.
b4cbea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ugurdalkiran , @dylancom , may I wonder why did you change this event name? Because I've encountered an obscure bug with [email protected] on Android, New Arch, bridgeless facebook/react-native#44555, and narrowed it down to seemingly being caused by
react-native-google-mobile-ads
, and being fixed by this name change. I'd like to understand why it makes the difference (or may be I totally misunderstood and mis-troubleshoot my issue); and if it is in fact was causing problems to host RN app, perhaps to ask RN team if such problems can be auto-detected and warned about (or crash the app), because in my case the issue was not apparent at all.b4cbea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@birdofpreyru @dylancom
Since I'm working on a completely new architecture now, I solved the problem by changing it this way. But I understand that it should be "topNative" in the default structure.
I don't know how we should proceed.
b4cbea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ugurdalkiran i meant “topNativeEvent” works for me and solves the problem, I’m just not understanding and asking why :)
b4cbea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ugurdalkiran i'm from the react native core team! i'm curious what the original issue was that you fixed and how you arrived to this solution? just wanted to figure this out to see if there's an issue we need to fix in the core infrastructure!
b4cbea3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks to @dmytrorykun i understand why this change needed to be made. essentially from very very legacy stuff, we have two different events types - events that go into the react event system, and events that get dispatched as a result of those events. in practice these names ended up being the same (i.e., i dispatch a event string to react, it will dispatch the same event string out). however, in the legacy android architecture, we still allowed these event strings to be different (i.e., dispatch "topNative" to React, which would then dispatch "topNativeEvent"), which is what caused this to redbox.
cc @birdofpreyru @cortinico