-
Notifications
You must be signed in to change notification settings - Fork 424
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
refactor(iOS): Migrate RCTOnPageSelected to swift #939
base: feature/switch-to-swift-pt1
Are you sure you want to change the base?
refactor(iOS): Migrate RCTOnPageSelected to swift #939
Conversation
@@ -2,3 +2,4 @@ | |||
#import <React/RCTUIManager.h> | |||
#import <React/UIView+React.h> | |||
#import <React/RCTUtils.h> | |||
#import <React/RCTAssert.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rename file so it matches class name
import Foundation | ||
import React | ||
|
||
@objc public class RCTOnPageSelected: NSObject, RCTEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add @objcMembers
@objc public func canCoalesce() -> Bool { | ||
return false | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If canCoalesce
is false you don't need to have coalescingKey
and public func coalesce(with newEvent: RCTEvent) -> RCTEvent
Summary
Test Plan
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md