newsmemory-ios-sdk/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSSearchBar.h

44 lines
1.4 KiB
C
Raw Normal View History

2024-05-02 15:08:24 +00:00
#import <UIKit/UIKit.h>
2024-10-29 07:36:43 +00:00
#ifdef RCT_NEW_ARCH_ENABLED
#import <React/RCTViewComponentView.h>
#import <react/renderer/components/rnscreens/RCTComponentViewHelpers.h>
#endif
2024-05-02 15:08:24 +00:00
#import <React/RCTBridge.h>
#import <React/RCTComponent.h>
#import <React/RCTViewManager.h>
2024-10-29 07:36:43 +00:00
#import "RNSEnums.h"
2024-05-02 15:08:24 +00:00
2024-10-29 07:36:43 +00:00
@interface RNSSearchBar :
#ifdef RCT_NEW_ARCH_ENABLED
RCTViewComponentView <UISearchBarDelegate, RCTRNSSearchBarViewProtocol>
#else
UIView <UISearchBarDelegate>
#endif
2024-05-02 15:08:24 +00:00
@property (nonatomic) BOOL hideWhenScrolling;
2024-10-29 07:36:43 +00:00
@property (nonatomic) RNSSearchBarPlacement placement;
2024-05-02 15:08:24 +00:00
@property (nonatomic, retain) UISearchController *controller;
2024-10-29 07:36:43 +00:00
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_16_0) && \
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_0 && !TARGET_OS_TV
- (UINavigationItemSearchBarPlacement)placementAsUINavigationItemSearchBarPlacement API_AVAILABLE(ios(16.0))
API_UNAVAILABLE(tvos, watchos);
#endif // Check for iOS >= 16 && !TARGET_OS_TV
#ifdef RCT_NEW_ARCH_ENABLED
#else
@property (nonatomic, copy) RCTDirectEventBlock onChangeText;
@property (nonatomic, copy) RCTDirectEventBlock onCancelButtonPress;
@property (nonatomic, copy) RCTDirectEventBlock onSearchButtonPress;
@property (nonatomic, copy) RCTDirectEventBlock onSearchFocus;
@property (nonatomic, copy) RCTDirectEventBlock onSearchBlur;
#endif
2024-05-02 15:08:24 +00:00
@end
@interface RNSSearchBarManager : RCTViewManager
@end