Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import "RNGHRuntimeDecorator.h"

#import "RNGestureHandler.h"
#import "RNGestureHandlerDirection.h"
#import "RNGestureHandlerState.h"

#import "RNGestureHandlerButton.h"
Expand Down Expand Up @@ -278,28 +277,6 @@ - (void)addOperationBlock:(GestureHandlerOperation)operation
return @[ @"onGestureHandlerEvent", @"onGestureHandlerStateChange" ];
}

#pragma mark Module Constants

- (NSDictionary *)constantsToExport
{
return @{
@"State" : @{
@"UNDETERMINED" : @(RNGestureHandlerStateUndetermined),
@"BEGAN" : @(RNGestureHandlerStateBegan),
@"ACTIVE" : @(RNGestureHandlerStateActive),
@"CANCELLED" : @(RNGestureHandlerStateCancelled),
@"FAILED" : @(RNGestureHandlerStateFailed),
@"END" : @(RNGestureHandlerStateEnd)
},
@"Direction" : @{
@"RIGHT" : @(RNGestureHandlerDirectionRight),
@"LEFT" : @(RNGestureHandlerDirectionLeft),
@"UP" : @(RNGestureHandlerDirectionUp),
@"DOWN" : @(RNGestureHandlerDirectionDown)
}
};
Comment on lines -285 to -300

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android module didn't export it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did, until you removed it 😄

}

- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
Expand Down
2 changes: 0 additions & 2 deletions packages/react-native-gesture-handler/src/State.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// TODO use State from RNModule

export const State = {
UNDETERMINED: 0,
FAILED: 1,
Expand Down
Loading