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

[0.72.0-rc.5] Event: you must return a valid, non-value from getEventData #1778

Closed
tomekzaw opened this issue Jun 1, 2023 · 8 comments
Closed
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android

Comments

@tomekzaw
Copy link
Member

tomekzaw commented Jun 1, 2023

Description

The following error appears when using react-native-screens@3.20.0 with react-native@0.72.0-rc.5 with Fabric enabled:

Zrzut ekranu 2023-06-1 o 20 16 30

The root cause is that react-native-screens sends an event with name onAttached with null payload which apparently is no longer supported.

Steps to reproduce

  1. Run FabricExample app.

Snack or a link to a repository

https://github.com/software-mansion/react-native-reanimated/tree/%40tomekzaw/72rc5

Screens version

3.20.0

React Native version

0.72.0-rc.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Jun 1, 2023
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added the Platform: Android This issue is specific to Android label Jun 1, 2023
@cortinico
Copy link
Contributor

@tomekzaw do you have any idea on what might be happening here? I worked on Fabric Interop for 0.72 and we had to work on the Event pipeline for Android, but the problem you're reporting seems unrelated 🤔

@tomekzaw
Copy link
Member Author

tomekzaw commented Jun 2, 2023

@cortinico Most likely that's because we send events with null payload, see here:

@cortinico
Copy link
Contributor

yeah that's most likely the cause

@kmagiera
Copy link
Member

kmagiera commented Jun 5, 2023

ccing @WoLewicki – will you have some time to look into this one?

@WoLewicki
Copy link
Member

Yeah, I'll do it ASAP.

@WoLewicki
Copy link
Member

Could you take a look if #1783 fixes the issue?

@tomekzaw
Copy link
Member Author

@WoLewicki Works like a charm. 👏

Closing this issue as it was fixed in #1783 and released in 3.21.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

4 participants