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

BackHandler.removeEventListener no longer exists in react native #2737

Closed
1 of 6 tasks
vish404 opened this issue Feb 3, 2025 · 9 comments
Closed
1 of 6 tasks

BackHandler.removeEventListener no longer exists in react native #2737

vish404 opened this issue Feb 3, 2025 · 9 comments
Assignees
Labels
bug Something isn't working react-native-aria

Comments

@vish404
Copy link

vish404 commented Feb 3, 2025

Description

When using actionsheet in react native 0.77

CodeSandbox/Snack link

https://github.com/vish404/gluestack-improvement-issue

Steps to reproduce

  1. npm install
  2. npm run android

gluestack-ui Version

0.2.46

Platform

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • iOS

Other Platform

No response

Additional Information

Occured when i used "@gluestack-ui/actionsheet": "^0.2.46",

The BackHandler.removeEventListener removed as per facebook/react-native#45892

Image

Image

@mhaf4krr
Copy link

mhaf4krr commented Feb 4, 2025

Same issue here.

@sanjaykdotworld
Copy link

Rectify this error as soon as , It does not support to react native version 0.77.0

@dfftech
Copy link

dfftech commented Feb 12, 2025

Facing same issue for Toast "@/components/ui/toast"

Warning: TypeError: _reactNative.BackHandler.removeEventListener is not a function. (In '_reactNative.BackHandler.removeEventListener('hardwareBackPress', backHandler)', '_reactNative.BackHandler.removeEventListener' is undefined)
Error in: /@react-native-aria/interactions/src/useKeyboardDismisssable.ts 

@HamidShaikh1499
Copy link

Any update, coz i am also facing this problem with latest version of React Native 0.77.

Please provide solution regarding same!

@HamidShaikh1499
Copy link

Due this error, I am not able to use drawer, action sheet, alert dialog and model as well.

Many components are not working in 0.77 RN.

@akash3gtm
Copy link
Collaborator

It is being worked in PR 2744

@Joker-Tang
Copy link

We want to get a useful version as soon as possible. I can't get '@react native aria/[email protected]'.

@akash3gtm
Copy link
Collaborator

Please check again with the latest versions, it is resolved now.

Closing this for now, if error persists please reopen this issue.

@vish404
Copy link
Author

vish404 commented Feb 21, 2025

Thank you @akash3gtm

@akash3gtm akash3gtm assigned akash3gtm and unassigned vaibhk20 Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react-native-aria
Projects
Development

No branches or pull requests

8 participants