Skip to content

Commit

Permalink
fix: support custom onHoverIn & onPressIn on top of normal behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Jul 8, 2023
1 parent 7d0c344 commit 84646eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Link<T extends BaseScreen>({
]
);

const onPressInExternal = rest?.onPressIn;
const onPressInExternal = rest?.onPressIn || undefined;
const onPressIn = React.useCallback(
(e: GestureResponderEvent) => {
preloadElementInner();
Expand Down

0 comments on commit 84646eb

Please sign in to comment.