Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unsupported top level event type #200

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

janicduplessis
Copy link
Collaborator

@janicduplessis janicduplessis commented Nov 4, 2024

Looks like the even name has to match now in RN 0.76 on new arch, so onLoadStart needs to be topLoadStart instead of topBlurhashLoadStart.

Fix #199

@mrousavy
Copy link
Owner

mrousavy commented Nov 4, 2024

this is so weird 😂

@@ -23,7 +23,7 @@ internal class LoadStartEvent(
override fun getEventData(): WritableMap = Arguments.createMap()

companion object {
const val EVENT_NAME = "topBlurhashLoadStart"
const val EVENT_NAME = "topLoadStart"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can topLoadStart theoretically collide with other components that emit events under the same name, like e.g. an Image component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is also what I was wondering, but seems to work fine

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok cool lgtm then haha thx

@mrousavy mrousavy merged commit 5c59d71 into master Nov 5, 2024
5 checks passed
@janicduplessis janicduplessis deleted the janicduplessis-patch-1 branch November 6, 2024 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] RN 0.76 / New arch: Unsupported top level event type "topBlurhashLoadStart" dispatched
2 participants