Skip to content

Commit

Permalink
fix(player/react): add gesture event callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Oct 17, 2023
1 parent 5ac0697 commit bbca26a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/ui/gesture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import { Primitive } from '../primitives/nodes';
* Gesture
* -----------------------------------------------------------------------------------------------*/

const GestureBridge = createReactComponent(GestureInstance);
const GestureBridge = createReactComponent(GestureInstance, {
events: ['onWillTrigger', 'onTrigger'],
});

export interface GestureProps extends ReactElementProps<GestureInstance> {
asChild?: boolean;
Expand Down

0 comments on commit bbca26a

Please sign in to comment.