-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Change exports #3858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
m-bert
wants to merge
9
commits into
next
Choose a base branch
from
@mbert/remove-catch-all-exports
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+174
−30
Open
Change exports #3858
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
548ce31
Types
m-bert 7387aa3
Utils
m-bert 9eece1a
Cleanup main index
m-bert f9eb19a
Merge branch 'next' into @mbert/remove-catch-all-exports
m-bert ba84eb8
change export
m-bert d6208f7
Merge branch 'next' into @mbert/remove-catch-all-exports
m-bert 9bf467f
Export components
m-bert 0291abb
Remove duplicate components export
m-bert 88b9ede
Explicit exports
m-bert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export * from './composition'; | ||
| export * from './gestures'; |
This file contains hidden or 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 hidden or 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 hidden or 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
49 changes: 43 additions & 6 deletions
49
packages/react-native-gesture-handler/src/v3/hooks/utils/index.ts
This file contains hidden or 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,6 +1,43 @@ | ||
| export * from './configUtils'; | ||
| export * from './eventHandlersUtils'; | ||
| export * from './eventUtils'; | ||
| export * from './reanimatedUtils'; | ||
| export * from './relationUtils'; | ||
| export * from './propsWhiteList'; | ||
| export { | ||
| prepareConfig, | ||
| prepareConfigForNativeSide, | ||
| useClonedAndRemappedConfig, | ||
| } from './configUtils'; | ||
|
|
||
| export { | ||
| useMemoizedGestureCallbacks, | ||
| touchEventTypeToCallbackType, | ||
| runCallback, | ||
| } from './eventHandlersUtils'; | ||
|
|
||
| export { | ||
| maybeExtractNativeEvent, | ||
| flattenAndFilterEvent, | ||
| isEventForHandlerWithTag, | ||
| isNativeAnimatedEvent, | ||
| checkMappingForChangeProperties, | ||
| shouldHandleTouchEvents, | ||
| getChangeEventCalculator, | ||
| } from './eventUtils'; | ||
|
|
||
| export { | ||
| bindSharedValues, | ||
| unbindSharedValues, | ||
| hasWorkletEventHandlers, | ||
| maybeUnpackValue, | ||
| } from './reanimatedUtils'; | ||
|
|
||
| export { | ||
| isComposedGesture, | ||
| prepareRelations, | ||
| containsDuplicates, | ||
| } from './relationUtils'; | ||
|
|
||
| export { | ||
| allowedNativeProps, | ||
| NativeWrapperProps, | ||
| HandlerCallbacks, | ||
| PropsToFilter, | ||
| PropsWhiteLists, | ||
| EMPTY_WHITE_LIST, | ||
| } from './propsWhiteList'; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| export type { GestureDetectorProps } from './detectors'; | ||
| export { | ||
| GestureDetector, | ||
| VirtualGestureDetector, | ||
| InterceptingGestureDetector, | ||
| DetectorType, | ||
| } from './detectors'; | ||
|
|
||
| export type { | ||
| TapGesture, | ||
| TapGestureConfig, | ||
| TapGestureEvent, | ||
| FlingGesture, | ||
| FlingGestureConfig, | ||
| FlingGestureEvent, | ||
| LongPressGesture, | ||
| LongPressGestureConfig, | ||
| LongPressGestureEvent, | ||
| PinchGesture, | ||
| PinchGestureConfig, | ||
| PinchGestureEvent, | ||
| RotationGesture, | ||
| RotationGestureConfig, | ||
| RotationGestureEvent, | ||
| HoverGesture, | ||
| HoverGestureConfig, | ||
| HoverGestureEvent, | ||
| ManualGesture, | ||
| ManualGestureConfig, | ||
| ManualGestureEvent, | ||
| NativeGesture, | ||
| NativeViewGestureConfig, | ||
| NativeGestureEvent, | ||
| PanGesture, | ||
| PanGestureConfig, | ||
| PanGestureEvent, | ||
| SingleGesture, | ||
| SingleGestureEvent, | ||
| } from './hooks'; | ||
| export { | ||
| useSimultaneousGestures, | ||
| useExclusiveGestures, | ||
| useCompetingGestures, | ||
| useTapGesture, | ||
| useFlingGesture, | ||
| useLongPressGesture, | ||
| usePinchGesture, | ||
| useRotationGesture, | ||
| useHoverGesture, | ||
| useManualGesture, | ||
| useNativeGesture, | ||
| usePanGesture, | ||
| } from './hooks'; | ||
|
|
||
| export type { | ||
| RawButtonProps, | ||
| BaseButtonProps, | ||
| RectButtonProps, | ||
| BorderlessButtonProps, | ||
| } from './components'; | ||
| export { | ||
| RawButton, | ||
| BaseButton, | ||
| RectButton, | ||
| BorderlessButton, | ||
| PureNativeButton, | ||
| ScrollView, | ||
| Switch, | ||
| TextInput, | ||
| FlatList, | ||
| RefreshControl, | ||
| } from './components'; | ||
|
|
||
| export type { ComposedGesture } from './types'; |
This file contains hidden or 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
55 changes: 49 additions & 6 deletions
55
packages/react-native-gesture-handler/src/v3/types/index.ts
This file contains hidden or 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,6 +1,49 @@ | ||
| export * from './ReanimatedTypes'; | ||
| export * from './ConfigTypes'; | ||
| export * from './EventTypes'; | ||
| export * from './DetectorTypes'; | ||
| export * from './GestureTypes'; | ||
| export * from './UtilityTypes'; | ||
| export type { | ||
| SharedValue, | ||
| SharedValueOrT, | ||
| WithSharedValue, | ||
| } from './ReanimatedTypes'; | ||
|
|
||
| export type { | ||
| HandlerData, | ||
| GestureUpdateEventWithHandlerData, | ||
| GestureStateChangeEventWithHandlerData, | ||
| GestureHandlerEventWithHandlerData, | ||
| UnpackedGestureHandlerEventWithHandlerData, | ||
| UnpackedGestureHandlerEvent, | ||
| UpdateEventWithHandlerData, | ||
| StateChangeEventWithHandlerData, | ||
| TouchEvent, | ||
| GestureEvent, | ||
| AnimatedEvent, | ||
| ChangeCalculatorType, | ||
| DiffCalculatorType, | ||
| } from './EventTypes'; | ||
|
|
||
| export type { | ||
| GestureCallbacks, | ||
| GestureRelations, | ||
| InternalConfigProps, | ||
| CommonGestureConfig, | ||
| ComposedGestureConfig, | ||
| } from './ConfigTypes'; | ||
|
|
||
| export type { DetectorCallbacks, VirtualChild } from './DetectorTypes'; | ||
|
|
||
| export { SingleGestureName, ComposedGestureName } from './GestureTypes'; | ||
| export type { | ||
| ExternalRelations, | ||
| BaseDiscreteGestureConfig, | ||
| BaseGestureConfig, | ||
| SingleGesture, | ||
| DiscreteSingleGesture, | ||
| ComposedGesture, | ||
| Gesture, | ||
| AnyGesture, | ||
| } from './GestureTypes'; | ||
|
|
||
| export type { | ||
| HandlersPropsWhiteList, | ||
| FilterNeverProperties, | ||
| ExcludeInternalConfigProps, | ||
| } from './UtilityTypes'; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.