Skip to content

Commit

Permalink
Refactor GestureDetector (#2901)
Browse files Browse the repository at this point in the history
## Description

This PR refactors GestureDetector file:
- splits it into smaller files
- renames some variables
- removes redundant logic
- extracts common logic to utils

## Test plan

Test on the Example app

---------

Co-authored-by: Michał Bert <63123542+m-bert@users.noreply.github.com>
  • Loading branch information
j-piasecki and m-bert committed May 16, 2024
1 parent da2a5e0 commit cbaf6b0
Show file tree
Hide file tree
Showing 16 changed files with 1,046 additions and 911 deletions.
2 changes: 1 addition & 1 deletion src/handlers/gestureHandlerCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const baseGestureHandlerProps = [
'onHandlerStateChange',
] as const;

export const baseGestureHandlerWithMonitorProps = [
export const baseGestureHandlerWithDetectorProps = [
...commonProps,
'needsPointerData',
'manualActivation',
Expand Down
Loading

0 comments on commit cbaf6b0

Please sign in to comment.