Skip to content

Commit

Permalink
fix: old architecture events
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Dec 3, 2024
1 parent ff71011 commit eda6b67
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public class OnNativeLayoutEvent: NSObject, RCTEvent {
public class func moduleDotMethod() -> String {
return "RCTEventEmitter.receiveEvent"
}

public func canCoalesce() -> Bool {
return false
}

public func arguments() -> [Any] {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public class PageSelectedEvent: NSObject, RCTEvent {
return "RCTEventEmitter.receiveEvent"
}

public func canCoalesce() -> Bool {
return false
}

public func arguments() -> [Any] {
return [
viewTag,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public class TabBarMeasuredEvent: NSObject, RCTEvent {
return "RCTEventEmitter.receiveEvent"
}

public func canCoalesce() -> Bool {
return false
}

public func arguments() -> [Any] {
return [
viewTag,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class TabLongPressEvent: NSObject, RCTEvent {
return "RCTEventEmitter.receiveEvent"
}

public func canCoalesce() -> Bool {
return false
}

public func arguments() -> [Any] {
return [
viewTag,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ @implementation RCTTabView
RCT_EXPORT_VIEW_PROPERTY(onPageSelected, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onTabLongPress, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onTabBarMeasured, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(onNativeLayout, RCTDirectEventBlock)
RCT_EXPORT_VIEW_PROPERTY(selectedPage, NSString)
RCT_EXPORT_VIEW_PROPERTY(tabViewStyle, NSString)
RCT_EXPORT_VIEW_PROPERTY(icons, NSArray<RCTImageSource *>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public final class TabInfo: NSObject {

@objc var onTabLongPress: RCTDirectEventBlock?
@objc var onTabBarMeasured: RCTDirectEventBlock?
@objc var onNativeLayout: RCTDirectEventBlock?

@objc public var icons: NSArray? {
didSet {
Expand Down

0 comments on commit eda6b67

Please sign in to comment.