In my opinion, it should be cleaner using a useCallback around your listHeader method. It avoids re-rendering a component because of a method definition (here I guess your onPress method in CategoryButton)
See official doc: https://react.dev/reference/react/useCallback