You need to install
react-native-gesture-handler as well separately in the project dependency list and link it too with native as well. Please refer to this doc.
Hope this helps. Happy Coding!
use the following command to install
yarn add react-native-gesture-handler
and then link the library in the specific project
react-native link react-native-gesture-handler