-
Notifications
You must be signed in to change notification settings - Fork 229
Description
Checklist
- The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
After Upgrading to React 19 and expo sdk54 and RN 0.81.4, I am getting this issue [TypeError: Cannot read property 'prototype' of undefined]
Whenever I open my app , I am getting this [TypeError: Cannot read property 'prototype' of undefined] issue and Whenever I remove AuthProvider from My App , the App is working fine
ERROR [TypeError: Cannot read property 'prototype' of undefined]

Call Stack
(node_modules\react-native-auth0\src\hooks\Auth0Provider.tsx)
mountMemo (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
HooksDispatcherOnMountInDEV.useMemo (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
exports.useMemo (node_modules\react\cjs\react.development.js)
(node_modules\react-native-auth0\src\hooks\Auth0Provider.tsx)
callComponent.reactStackBottomFrame (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
renderWithHooks (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
updateFunctionComponent (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
beginWork (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
runWithFiberInDEV (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performUnitOfWork (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
workLoopSync (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
renderRootSync (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performWorkOnRoot (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
performWorkOnRootViaSchedulerTask (node_modules\react-native\Libraries\Renderer\implementations\ReactFabric-dev.js)
Call Stack
RootLayout (app_layout.tsx)
BaseRoute (node_modules\expo-router\build\useScreens.js)
SceneView (node_modules@react-navigation\core\lib\module\SceneView.js)
setOptions$argument_0 (node_modules@react-navigation\core\lib\module\useDescriptors.js)
render (node_modules@react-navigation\core\lib\module\useDescriptors.js)
reduce ()
render (node_modules@react-navigation\core\lib\module\useDescriptors.js)
useNavigationBuilder (node_modules@react-navigation\core\lib\module\useNavigationBuilder.js)
Content (node_modules\expo-router\build\ExpoRoot.js)
ContextNavigator (node_modules\expo-router\build\ExpoRoot.js)
(node_modules\expo-router\build\ExpoRoot.js)
App (node_modules\expo-router\build\qualified-entry.js)
WithDevTools (node_modules\expo\src\launch\withDevTools.tsx)
Reproduction
- Upgrade to expo 54 , react 19 and above and React Native 0.81 above
- Opening the App and getting this issue
Additional context
No response
react-native-auth0 version
5.0.0
React Native version
0.81.4
Expo version
54.0.10
Platform
Android
Platform version(s)
Android 9