Error message: Duplicate declaration of method 'resolver:rejecter:'
RCT_REMAP_METHOD(get_data,
resolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock )reject)
{
dispatch_group_wait(self.group, DISPATCH_TIME_FOREVER);
[self compute_run_avg:^(NSMutableDictionary *result) {
resolve(result);
}];
}
RCT_REMAP_METHOD(send_count,
resolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
}
Can I export only one method which uses promises?
Shouldn't the scope be limited to exported method?
if not
How can I reuse the method then?
thanks