This question has been asked before but it seems like all answers I find deal with class-based components.
I have a component with an onPress handler function as foll