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

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

BackHandler.removeEventListener no longer exists in react native #2737

vish404 opened this issue Feb 3, 2025 · 3 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 

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
Status: No status
Development

No branches or pull requests

6 participants