I was using TouchableWithoutFeedback from 'react-native', but I was having issues with that on android in absolute container, as clicks were not working, so I switched to the similar component from react-native-gesture-handler.from
import { TouchableWithoutFeedback } from "react-native"
to
import { TouchableWithoutFeedback } from 'react-native-gesture-handler'
Now every thing works fine but the test cases are broken now. I am getting below error while executing test cases
Test - SearchBar › Test - Search Bar - Search Press Unable to find node on an unmounted component.
I have added the mocking for react-native-gesture-handler already but still test cases are failing
"jest": { ..."setupFilesAfterEnv": ["<rootDir>/jest/setup.js","./node_modules/react-native-gesture-handler/jestSetup.js" ]}
I have looked for all possible ways but nothing is working. Any help here will be highly appreciated.
Thank you.