Invalid Hook Call Error while clicking on buttons in loginScreen
ERROR Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. at AppwriteOauth (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93761:24) at RCTView at View at LoginScreen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93648:41) at StaticContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194403:17) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190681:24) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194314:22) at RCTView at View at DebugContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195979:36) at MaybeNestedStack (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189354:23) at RCTView at View at RNSScreen at AnimatedComponent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:78869:38) at AnimatedComponentWrapper at Suspender (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198198:22) at Suspense at Freeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198217:23) at DelayedFreeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197696:22) at InnerScreen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197737:36) at Screen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197902:36) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189398:22) at Suspender (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198198:22) at Suspense at Freeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198217:23) at DelayedFreeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197696:22) at RNSScreenStack at ScreenStack (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197714:25) at NativeStackViewInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189557:22) at RNCSafeAreaProvider at SafeAreaProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:196846:24) at SafeAreaProviderCompat (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197499:25) at NativeStackView at PreventRemoveProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:193443:25) at NavigationContent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194137:22) at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194149:27) at NativeStackNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189295:18) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190681:24) at BaseNavigationContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190288:28) at ThemeProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195477:21) at NavigationContainerInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195370:26) at App (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93596:41) at RCTView at View at RCTView at View at AppContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:85300:36) at AppwriteOauthExample(RootComponent) (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:89907:28) ERROR Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
- You might have mismatching versions of React and the renderer (such as React DOM)
- You might be breaking the Rules of Hooks
- You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. at AppwriteOauth (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93761:24) at RCTView at View at LoginScreen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93648:41) at StaticContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194403:17) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190681:24) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194314:22) at RCTView at View at DebugContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195979:36) at MaybeNestedStack (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189354:23) at RCTView at View at RNSScreen at AnimatedComponent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:78869:38) at AnimatedComponentWrapper at Suspender (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198198:22) at Suspense at Freeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198217:23) at DelayedFreeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197696:22) at InnerScreen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197737:36) at Screen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197902:36) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189398:22) at Suspender (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198198:22) at Suspense at Freeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:198217:23) at DelayedFreeze (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197696:22) at RNSScreenStack at ScreenStack (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197714:25) at NativeStackViewInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189557:22) at RNCSafeAreaProvider at SafeAreaProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:196846:24) at SafeAreaProviderCompat (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:197499:25) at NativeStackView at PreventRemoveProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:193443:25) at NavigationContent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194137:22) at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:194149:27) at NativeStackNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:189295:18) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190681:24) at BaseNavigationContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:190288:28) at ThemeProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195477:21) at NavigationContainerInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:195370:26) at App (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:93596:41) at RCTView at View at RCTView at View at AppContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:85300:36) at AppwriteOauthExample(RootComponent) (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.appwriteoauthexample&modulesOnly=false&runModule=true:89907:28) ERROR TypeError: Cannot read property 'useState' of null
This error is located at: in AppwriteOauth (created by LoginScreen) in RCTView (created by View) in View (created by LoginScreen) in LoginScreen (created by SceneView) in StaticContainer in EnsureSingleNavigator (created by SceneView) in SceneView (created by SceneView) in RCTView (created by View) in View (created by DebugContainer) in DebugContainer (created by MaybeNestedStack) in MaybeNestedStack (created by SceneView) in RCTView (created by View) in View (created by SceneView) in RNSScreen (created by AnimatedComponent) in AnimatedComponent in AnimatedComponentWrapper (created by InnerScreen) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by InnerScreen) in InnerScreen (created by Screen) in Screen (created by SceneView) in SceneView (created by NativeStackViewInner) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by ScreenStack) in RNSScreenStack (created by ScreenStack) in ScreenStack (created by NativeStackViewInner) in NativeStackViewInner (created by NativeStackView) in RNCSafeAreaProvider (created by SafeAreaProvider) in SafeAreaProvider (created by SafeAreaInsetsContext) in SafeAreaProviderCompat (created by NativeStackView) in NativeStackView (created by NativeStackNavigator) in PreventRemoveProvider (created by NavigationContent) in NavigationContent in Unknown (created by NativeStackNavigator) in NativeStackNavigator (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in App in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in AppwriteOauthExample(RootComponent), js engine: hermes ERROR TypeError: Cannot read property 'useState' of null
This error is located at: in AppwriteOauth (created by LoginScreen) in RCTView (created by View) in View (created by LoginScreen) in LoginScreen (created by SceneView) in StaticContainer in EnsureSingleNavigator (created by SceneView) in SceneView (created by SceneView) in RCTView (created by View) in View (created by DebugContainer) in DebugContainer (created by MaybeNestedStack) in MaybeNestedStack (created by SceneView) in RCTView (created by View) in View (created by SceneView) in RNSScreen (created by AnimatedComponent) in AnimatedComponent in AnimatedComponentWrapper (created by InnerScreen) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by InnerScreen) in InnerScreen (created by Screen) in Screen (created by SceneView) in SceneView (created by NativeStackViewInner) in Suspender (created by Freeze) in Suspense (created by Freeze) in Freeze (created by DelayedFreeze) in DelayedFreeze (created by ScreenStack) in RNSScreenStack (created by ScreenStack) in ScreenStack (created by NativeStackViewInner) in NativeStackViewInner (created by NativeStackView) in RNCSafeAreaProvider (created by SafeAreaProvider) in SafeAreaProvider (created by SafeAreaInsetsContext) in SafeAreaProviderCompat (created by NativeStackView) in NativeStackView (created by NativeStackNavigator) in PreventRemoveProvider (created by NavigationContent) in NavigationContent in Unknown (created by NativeStackNavigator) in NativeStackNavigator (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in App in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in AppwriteOauthExample(RootComponent), js engine: hermes