You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Expo SDK 53 with hcaptcha and my app gives me the error "Warning: TypeError: _reactNative.BackHandler.removeEventListener is not a function (it is undefined)".
Using chatGPT it suggests that the problem is coming from the following:
The stack trace shows that the offending call to BackHandler.removeEventListener("hardwareBackPress", …) is coming from inside ReactNativeModal (which @hcaptcha/react-native-hcaptcha depends on). In RN 0.71+ (and Expo SDK 48+), BackHandler.removeEventListener no longer exists, so any library that still calls it will blow up.