Skip to content

Commit

Permalink
Fix macOS warning message (#2713)
Browse files Browse the repository at this point in the history
## Description

This PR just fix a message in native view handler warning. 

## Test plan

n/a
  • Loading branch information
jfedak committed Jan 10, 2024
1 parent 9bea72b commit 7a13ef5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apple/Handlers/RNFlingHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ @implementation RNFlingGestureHandler

- (instancetype)initWithTag:(NSNumber *)tag
{
RCTLogWarn(@"Fling gesture handler is not supported on macOS");
RCTLogWarn(@"FlingGestureHandler is not supported on macOS");
if ((self = [super initWithTag:tag])) {
_recognizer = [NSGestureRecognizer alloc];
}
Expand Down
4 changes: 2 additions & 2 deletions apple/Handlers/RNHoverHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ @implementation RNHoverGestureHandler {
- (instancetype)initWithTag:(NSNumber *)tag
{
#if TARGET_OS_TV
RCTLogWarn(@"Hover gesture handler is not supported on tvOS");
RCTLogWarn(@"HoverGestureHandler is not supported on tvOS");
#endif

if ((self = [super initWithTag:tag])) {
Expand Down Expand Up @@ -160,7 +160,7 @@ @implementation RNHoverGestureHandler

- (instancetype)initWithTag:(NSNumber *)tag
{
RCTLogWarn(@"Hover gesture handler is not supported on macOS");
RCTLogWarn(@"HoverGestureHandler is not supported on macOS");
if ((self = [super initWithTag:tag])) {
_recognizer = [NSGestureRecognizer alloc];
}
Expand Down
2 changes: 1 addition & 1 deletion apple/Handlers/RNLongPressHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ @implementation RNLongPressGestureHandler

- (instancetype)initWithTag:(NSNumber *)tag
{
RCTLogWarn(@"Long press gesture handler is not supported on macOS");
RCTLogWarn(@"LongPressGestureHandler is not supported on macOS");
if ((self = [super initWithTag:tag])) {
_recognizer = [NSGestureRecognizer alloc];
}
Expand Down
2 changes: 1 addition & 1 deletion apple/Handlers/RNManualHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ @implementation RNManualGestureHandler

- (instancetype)initWithTag:(NSNumber *)tag
{
RCTLogWarn(@"Manual gesture handler is not supported on macOS");
RCTLogWarn(@"ManualGestureHandler is not supported on macOS");
if ((self = [super initWithTag:tag])) {
_recognizer = [NSGestureRecognizer alloc];
}
Expand Down
2 changes: 1 addition & 1 deletion apple/Handlers/RNNativeViewHandler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ @implementation RNNativeViewGestureHandler

- (instancetype)initWithTag:(NSNumber *)tag
{
RCTLogWarn(@"Manual gesture handler is not supported on macOS");
RCTLogWarn(@"NativeViewGestureHandler is not supported on macOS");
if ((self = [super initWithTag:tag])) {
_recognizer = [NSGestureRecognizer alloc];
}
Expand Down

0 comments on commit 7a13ef5

Please sign in to comment.