Relative Content

Tag Archive for react-nativereact-navigationpressable

How can i avoid hiding the keyboard when the onPress event(Pressable) is triggered?

My React Native app has a search screen(Page A) that goes back to the previous page when hiding the keyboard; Clicking on the search results will take you to the search results page(Page B). The problem is that clicking on a search result hides the keyboard, making the KeyboardHide event activated. The KeyboardHide event will cause a return to the previous page, causing the jump to page B to never be executed.