From da3fbfafeee210e48b39387ea51c551c3a5ee69b Mon Sep 17 00:00:00 2001 From: wwwcg Date: Thu, 23 May 2024 17:20:17 +0800 Subject: [PATCH] chore(ios): add addFrameCallback method for devtools to avoid warning Note that the implementation of this method is empty --- .../native/ios/renderer/component/view/HippyViewManager.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/renderer/native/ios/renderer/component/view/HippyViewManager.mm b/renderer/native/ios/renderer/component/view/HippyViewManager.mm index 4b797611b9c..7ff057335fd 100644 --- a/renderer/native/ios/renderer/component/view/HippyViewManager.mm +++ b/renderer/native/ios/renderer/component/view/HippyViewManager.mm @@ -198,6 +198,13 @@ - (void)measureInAppWindow:(NSNumber *)componentTag }]; } +HIPPY_EXPORT_METHOD(addFrameCallback:(nonnull NSNumber *)hippyTag + params:(NSDictionary *__nonnull)params + callback:(HippyPromiseResolveBlock)callback) { + // For devtools + // Leave the implementation empty for now. +} + #pragma mark - View properties HIPPY_EXPORT_VIEW_PROPERTY(accessibilityLabel, NSString)