#import "RNSBottomTabsHostComponentViewManager.h" #if !RCT_NEW_ARCH_ENABLED #import #import "RNSBottomTabsHostComponentView.h" #endif @implementation RNSBottomTabsHostComponentViewManager // TODO: This seems to be legacy arch only - test & remove when no longer needed RCT_EXPORT_MODULE(RNSBottomTabsManager) #if !RCT_NEW_ARCH_ENABLED - (UIView *)view { // For Paper, we need to initialize TabsHost with RCTImageLoader from bridge return [[RNSBottomTabsHostComponentView alloc] initWithFrame:CGRectZero reactImageLoader:[self.bridge moduleForClass:[RCTImageLoader class]]]; } #pragma mark - LEGACY Props RCT_EXPORT_VIEW_PROPERTY(tabBarTintColor, UIColor); // This remapping allows us to store UITabBarMinimizeBehavior in the component while accepting a custom enum as input // from JS. RCT_REMAP_VIEW_PROPERTY( tabBarMinimizeBehavior, tabBarMinimizeBehaviorFromRNSTabBarMinimizeBehavior, RNSTabBarMinimizeBehavior); // TODO: Missing prop //@property (nonatomic, readonly) BOOL experimental_controlNavigationStateInJS; #pragma mark - LEGACY Events RCT_EXPORT_VIEW_PROPERTY(onNativeFocusChange, RCTDirectEventBlock); #endif @end