diff --git a/packages/react-native-bottom-tabs/ios/Events/OnNativeLayoutEvent.swift b/packages/react-native-bottom-tabs/ios/Events/OnNativeLayoutEvent.swift index af3d19a..b01e499 100644 --- a/packages/react-native-bottom-tabs/ios/Events/OnNativeLayoutEvent.swift +++ b/packages/react-native-bottom-tabs/ios/Events/OnNativeLayoutEvent.swift @@ -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 [ diff --git a/packages/react-native-bottom-tabs/ios/Events/PageSelectedEvent.swift b/packages/react-native-bottom-tabs/ios/Events/PageSelectedEvent.swift index 9a6841e..25700c0 100644 --- a/packages/react-native-bottom-tabs/ios/Events/PageSelectedEvent.swift +++ b/packages/react-native-bottom-tabs/ios/Events/PageSelectedEvent.swift @@ -19,6 +19,10 @@ public class PageSelectedEvent: NSObject, RCTEvent { return "RCTEventEmitter.receiveEvent" } + public func canCoalesce() -> Bool { + return false + } + public func arguments() -> [Any] { return [ viewTag, diff --git a/packages/react-native-bottom-tabs/ios/Events/TabBarMeasuredEvent.swift b/packages/react-native-bottom-tabs/ios/Events/TabBarMeasuredEvent.swift index 94609c5..91d27f4 100644 --- a/packages/react-native-bottom-tabs/ios/Events/TabBarMeasuredEvent.swift +++ b/packages/react-native-bottom-tabs/ios/Events/TabBarMeasuredEvent.swift @@ -19,6 +19,10 @@ public class TabBarMeasuredEvent: NSObject, RCTEvent { return "RCTEventEmitter.receiveEvent" } + public func canCoalesce() -> Bool { + return false + } + public func arguments() -> [Any] { return [ viewTag, diff --git a/packages/react-native-bottom-tabs/ios/Events/TabLongPressedEvent.swift b/packages/react-native-bottom-tabs/ios/Events/TabLongPressedEvent.swift index c061870..ac7a0de 100644 --- a/packages/react-native-bottom-tabs/ios/Events/TabLongPressedEvent.swift +++ b/packages/react-native-bottom-tabs/ios/Events/TabLongPressedEvent.swift @@ -23,6 +23,10 @@ public class TabLongPressEvent: NSObject, RCTEvent { return "RCTEventEmitter.receiveEvent" } + public func canCoalesce() -> Bool { + return false + } + public func arguments() -> [Any] { return [ viewTag, diff --git a/packages/react-native-bottom-tabs/ios/RCTTabViewViewManager.mm b/packages/react-native-bottom-tabs/ios/RCTTabViewViewManager.mm index 7b9b529..4cadc09 100644 --- a/packages/react-native-bottom-tabs/ios/RCTTabViewViewManager.mm +++ b/packages/react-native-bottom-tabs/ios/RCTTabViewViewManager.mm @@ -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); diff --git a/packages/react-native-bottom-tabs/ios/TabViewProvider.swift b/packages/react-native-bottom-tabs/ios/TabViewProvider.swift index b49d1d2..7932241 100644 --- a/packages/react-native-bottom-tabs/ios/TabViewProvider.swift +++ b/packages/react-native-bottom-tabs/ios/TabViewProvider.swift @@ -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 {