Skip to content

Commit

Permalink
explicitly type props to type of the props
Browse files Browse the repository at this point in the history
  • Loading branch information
latekvo committed Jan 9, 2025
1 parent 12f18b2 commit 0070e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/createNativeWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function createNativeWrapper<P>(
{...gestureHandlerProps}
// @ts-ignore TODO(TS)
ref={_gestureHandlerRef}>
<Component {...props} ref={_ref} />
<Component {...(props as P)} ref={_ref} />
</NativeViewGestureHandler>
);
});
Expand Down

0 comments on commit 0070e18

Please sign in to comment.