A hook to create a conditional onPress handler based on the presence of a specified style.
Options for the hook.
The name of the style key to check for.
The onPress function to be executed if the style is present.
A hook to create a conditional onPress handler based on the presence of a specified style.
Param: options
Options for the hook.
Param: options.styleName
The name of the style key to check for.
Param: options.onPress
The onPress function to be executed if the style is present.
Returns