#import #import #import "RNSDefines.h" #if RCT_NEW_ARCH_ENABLED #import #import #else #import #endif // RCT_NEW_ARCH_ENABLED NS_ASSUME_NONNULL_BEGIN @class RNSScreenContentWrapper; @class RNS_REACT_SCROLL_VIEW_COMPONENT; @protocol RNSScreenContentWrapperDelegate /** * Called by the content wrapper on a delegate when React Native updates the layout. */ - (void)contentWrapper:(RNSScreenContentWrapper *)contentWrapper receivedReactFrame:(CGRect)reactFrame; @end @interface RNSScreenContentWrapper : #ifdef RCT_NEW_ARCH_ENABLED RCTViewComponentView #else RCTView #endif @property (nonatomic, nullable, weak) id delegate; /** * Call this method to notify delegate with most recent frame set by React. */ - (void)triggerDelegateUpdate; - (nullable RNS_REACT_SCROLL_VIEW_COMPONENT *)childRCTScrollViewComponent; - (BOOL)coerceChildScrollViewComponentSizeToSize:(CGSize)size; @end @interface RNSScreenContentWrapperManager : RCTViewManager @end NS_ASSUME_NONNULL_END