-
-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rewrite gesture apis with gesture handler 2 (#1126)
* chore: updated dependencies * feat: rewrite the gesture api with gh2
- Loading branch information
Showing
21 changed files
with
2,777 additions
and
3,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
'**/*.js': ['eslint'], | ||
'**/*.{ts,tsx}': [() => 'tsc --skipLibCheck --noEmit', 'eslint'], | ||
'**/*.{ts,tsx}': [() => 'tsc --skipLibCheck --noEmit', 'eslint --fix'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
import type { ReactNode, Ref } from 'react'; | ||
import type { ReactNode } from 'react'; | ||
import type { ViewProps as RNViewProps } from 'react-native'; | ||
import type { NativeViewGestureHandler } from 'react-native-gesture-handler'; | ||
import type { GESTURE_SOURCE } from '../../constants'; | ||
import type { GestureRef } from 'react-native-gesture-handler/lib/typescript/handlers/gestures/gesture'; | ||
|
||
export type BottomSheetDraggableViewProps = RNViewProps & { | ||
/** | ||
* Defines the gesture type of the draggable view. | ||
* | ||
* @default GESTURE_SOURCE.CONTENT | ||
* @type GESTURE_SOURCE | ||
*/ | ||
gestureType?: GESTURE_SOURCE; | ||
nativeGestureRef?: Ref<NativeViewGestureHandler> | null; | ||
refreshControlGestureRef?: Ref<NativeViewGestureHandler> | null; | ||
nativeGestureRef?: Exclude<GestureRef, number>; | ||
refreshControlGestureRef?: Exclude<GestureRef, number>; | ||
children: ReactNode[] | ReactNode; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.