title: RNGestureHandlerModule.attach Gesture Handler got 3 arguments, expected 2
body: <p>I am building an app with React Native and have a login, Home, and member screen. when the user is admin I let him go to the home screen and when he is member I let him go to the member screen.
  and inside the Home screen, I have also the AddMember screen so I build stack navigation and drawer navigation inside stack navigation to navigate to these screens.
  The App.js Code:</p>
  <pre><code>import 'react-native-gesture-handler';
  import React from 'react';
  
  import { NavigationContainer } from '@react-navigation/native';
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
  import { createDrawerNavigator } from '@react-navigation/drawer';
  
  
  import LoginScreen from './screens/LoginScreen';
  import HomeScreen from './screens/HomeScreen';
  import MembersScreen from './screens/MembersScreen';
  import AddMember from './screens/AddMember';
  
  const Stack = createNativeStackNavigator();
  const Drawer = createDrawerNavigator();
  
  function Root() {
  return (
  &lt;Drawer.Navigator&gt;
    {/* &lt;Drawer.Screen name=&quot;Home&quot; component={HomeScreen} /&gt; */}
    &lt;Drawer.Screen name=&quot;AddMember&quot; component={AddMember} /&gt;
  &lt;/Drawer.Navigator&gt;
  );
  }
  
  export default function App() {
  return (
  &lt;NavigationContainer&gt;
    &lt;Stack.Navigator&gt;
      &lt;Stack.Screen name=&quot;Login&quot; component={LoginScreen} /&gt;
      &lt;Stack.Screen
        name=&quot;Root&quot;
        component={Root}
        options={{ headerShown: false }}
      /&gt;
      {/* &lt;Stack.Screen name=&quot;Home&quot; component={HomeScreen} /&gt; */}
      &lt;Stack.Screen name=&quot;Members&quot; component={MembersScreen} /&gt;
     &lt;/Stack.Navigator&gt;
     &lt;/NavigationContainer&gt;
    );
    }
  </code></pre>
  <p>and the login screen</p>
  <pre><code>import { useNavigation } from '@react-navigation/core';
  import React, { useEffect, useState } from 'react';
  import { StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native';
  
  import { 
  auth, 
  signInWithEmailAndPassword,
  onAuthStateChanged,
  db,
  collection,
  getDocs
  } from '../firebase';
  
  export default function LoginScreen() {
  const [email , setEmail ] = useState('');
  const [password , setPassword ] = useState('');
  
  const navigation = useNavigation();
  
  useEffect(() =&gt; {
      const unsibscribe = onAuthStateChanged(auth, (user) =&gt; {
          if(user) {
              handleCheckAdmin(user.email);
          }
      });
  
      return unsibscribe;
  
  }, []);
  
  const hanldeLogin = async () =&gt; {
      await signInWithEmailAndPassword(auth, email, password)
      .then(userCredentials =&gt; {
          const user = userCredentials.user;
      })
      .catch(error =&gt; alert(error.message));
  }
  
  const handleCheckAdmin = async (userEmail) =&gt; {
      try {
          const admins = collection(db, 'admin');
          const adminSnapshot = await getDocs(admins);
          const adminList = adminSnapshot.docs.map(doc =&gt; doc.get(&quot;adminEmail&quot;));
  
          adminList.forEach(adEmail =&gt; {
          if (adEmail === userEmail) {
              navigation.replace('Root');
  
          }
          else {
              navigation.replace('Members');
          }
      });
  
      } catch (error) {
          console.log(error);
      }
  }
  
  return (
      &lt;View 
          style={styles.container}
          behavior=&quot;padding&quot;
      &gt;
          &lt;View style={styles.inputContainer}&gt;
              &lt;TextInput 
                  placeholder=&quot;Email&quot;
                  value={email}
                  onChangeText={ text =&gt; setEmail(text)}
                  style={styles.input}
              /&gt;
              &lt;TextInput 
                  placeholder=&quot;Password&quot;
                  value={password}
                  onChangeText={ text =&gt; setPassword(text)}
                  style={styles.input}
                  secureTextEntry
              /&gt;
          &lt;/View&gt;
          &lt;View style={styles.buttonContainer}&gt;
              &lt;TouchableOpacity
                  onPress={hanldeLogin}
                  style={styles.button}
              &gt;
                  &lt;Text style={styles.buttonText}&gt;Login&lt;/Text&gt;
              &lt;/TouchableOpacity&gt;
          &lt;/View&gt;
      &lt;/View&gt;
       )
       }
  </code></pre>
  <p>and my problem is when I run the app and login in Home screen, I get this error:
  RNGestureHandlerModule.attach Gesture Handler got 3 arguments, expected 2.</p>