Solved this error just by updating all the packages related to gesture handler and drawer navigation. This approach will work only if you are not using gesture handler directly in code. If you are using it then use the worklet documentation - https://docs.swmansion.com/react-native-reanimated/docs/2.x/fundamentals/worklets