// // RNAccessibilityWrapper.m // // Created by Louay Alakkad on 10/04/2019. // Copyright © 2019 Facebook. All rights reserved. // #import #import "RNAccessibilityWrapper.h" #import @implementation RNAccessibilityWrapper - (void) setAccessibilityFields: (NSArray *)fields { NSMutableArray *accessibleElements = [NSMutableArray arrayWithCapacity:[fields count]]; [fields enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL * stop) { UIView *field = obj; [accessibleElements addObject:field]; }]; self.accessibilityElements = (NSArray *)accessibleElements; } - (bool) shouldGroupAccessibilityChildren { return YES; } @end