Skip to content

Commit 640aa73

Browse files
authored
fix: ios bridge to repect promise (#295)
1 parent e522f6e commit 640aa73

File tree

1 file changed

+3
-1
lines changed
  • packages/integrations/template/ios

1 file changed

+3
-1
lines changed

packages/integrations/template/ios/main.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ @implementation {{{integration_class_name}}}
2121

2222
RCT_EXPORT_MODULE()
2323

24-
RCT_EXPORT_METHOD(setup) {
24+
RCT_EXPORT_METHOD(setup: (RCTPromiseResolveBlock)resolve
25+
rejecter:(RCTPromiseRejectBlock)reject) {
2526
[RNAnalytics addIntegration:{{{factory_class_name}}}.instance];
27+
resolve(nil);
2628
}
2729

2830
@end

0 commit comments

Comments
 (0)