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

Navigation in drawer crashing app on Android with newArch #2304

Closed
MohamadHanafi opened this issue Aug 14, 2024 · 5 comments
Closed

Navigation in drawer crashing app on Android with newArch #2304

MohamadHanafi opened this issue Aug 14, 2024 · 5 comments
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario NewArch Issues related only to new architecture Platform: Android This issue is specific to Android

Comments

@MohamadHanafi
Copy link

Description

Current behavior

In bridgeless mode and newArch enabled on Android, app crashing on menu item click. React native doesnt catch this error in console. Index 1 out of bounds for length 1 error going from Native java code.

image

Expected behavior

On menu item click should navigate to screen i picked.

Steps to reproduce

  1. open the navigation drawer.
  2. choose a screen to go to.
  3. go back and choose another screen.

Snack or a link to a repository

https://github.com/neibips/Drawer_Reproduction

Screens version

3.32.0

React Native version

0.74.1

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Copy link

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Description section.

@github-actions github-actions bot added Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario labels Aug 14, 2024
Copy link

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 Aug 14, 2024
@alduzy
Copy link
Member

alduzy commented Aug 19, 2024

@MohamadHanafi There are no files in your repository other than README. Please update it and let me know.

@alduzy alduzy added NewArch Issues related only to new architecture Close when stale This issue is going to be closed when there is no activity for a while labels Aug 19, 2024
@MohamadHanafi
Copy link
Author

@alduzy I build a new app with react version 0.74.4 and [email protected] and it seems to be working:
https://github.com/MohamadHanafi/reactNativeScreensNewArchBug

@github-actions github-actions bot removed the Close when stale This issue is going to be closed when there is no activity for a while label Aug 25, 2024
@AyushMittal42
Copy link

AyushMittal42 commented Sep 3, 2024

@MohamadHanafi Hey, How did you solve this issue. I am currently facing the same issue in my app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario NewArch Issues related only to new architecture Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

3 participants