1 #import <UIKit/UIKit.h> 2 3 #ifdef RCT_NEW_ARCH_ENABLED 4 #import <React/RCTViewComponentView.h> 5 #import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h> 6 #endif 7 8 #import <React/RCTBridge.h> 9 #import <React/RCTComponent.h> 10 #import <React/RCTViewManager.h> 11 12 @interface RNSSearchBar : 13 #ifdef RCT_NEW_ARCH_ENABLED 14 RCTViewComponentView <UISearchBarDelegate, RCTRNSSearchBarViewProtocol> 15 #else 16 UIView <UISearchBarDelegate> 17 #endif 18 19 @property (nonatomic) BOOL hideWhenScrolling; 20 21 @property (nonatomic, retain) UISearchController *controller; 22 23 #ifdef RCT_NEW_ARCH_ENABLED 24 #else 25 @property (nonatomic, copy) RCTBubblingEventBlock onChangeText; 26 @property (nonatomic, copy) RCTBubblingEventBlock onCancelButtonPress; 27 @property (nonatomic, copy) RCTBubblingEventBlock onSearchButtonPress; 28 @property (nonatomic, copy) RCTBubblingEventBlock onFocus; 29 @property (nonatomic, copy) RCTBubblingEventBlock onBlur; 30 #endif 31 32 @end 33 34 @interface RNSSearchBarManager : RCTViewManager 35 36 @end 37