//// RNAccessibilityWrapper.m//// Created by Louay Alakkad on 10/04/2019.//#import <Foundation/Foundation.h>#import <React/RCTUIManager.h>#import "RNAccessibilityWrapper.h"#import "RNAccessibilityWrapperManager.h"@implementationRNAccessibilityWrapperManagerRCT_EXPORT_MODULE()-(UIView*)view{return[[RNAccessibilityWrapperalloc]init];}RCT_EXPORT_METHOD(setAccessibilityFields:(nonnullNSNumber*)reactTagfieldsReactTags:(nonnullNSArray*)fieldsReactTags){dispatch_async(dispatch_get_main_queue(),^{RNAccessibilityWrapper*component=(RNAccessibilityWrapper*)[self.bridge.uiManagerviewForReactTag:reactTag];NSMutableArray*fields=[NSMutableArrayarrayWithCapacity:[fieldsReactTagscount]];[fieldsReactTagsenumerateObjectsUsingBlock:^(idobj,NSUIntegeridx,BOOL*stop){NSNumber*tag=(NSNumber*)obj;UIView*field=[self.bridge.uiManagerviewForReactTag:tag];[fieldsaddObject:field];}];[componentsetAccessibilityFields:fields];});}@end