22#import < React/RCTAssert.h>
33
44@implementation RNCChangeEvent {
5- UIEdgeInsets _insets;
6- CGRect _frame;
7- uint16_t _coalescingKey;
5+ UIEdgeInsets _insets;
6+ CGRect _frame;
7+ uint16_t _coalescingKey;
88}
99
1010@synthesize eventName = _eventName;
@@ -16,41 +16,41 @@ - (instancetype)initWithEventName:(NSString *)eventName
1616 frame : (CGRect)frame
1717 coalescingKey : (uint16_t )coalescingKey
1818{
19- RCTAssertParam (reactTag);
20-
21- if ((self = [super init ])) {
22- _eventName = [eventName copy ];
23- _viewTag = reactTag;
24- _frame = frame;
25- _insets = insets;
26- _coalescingKey = coalescingKey;
27- }
28-
29- return self;
19+ RCTAssertParam (reactTag);
20+
21+ if ((self = [super init ])) {
22+ _eventName = [eventName copy ];
23+ _viewTag = reactTag;
24+ _frame = frame;
25+ _insets = insets;
26+ _coalescingKey = coalescingKey;
27+ }
28+
29+ return self;
3030}
3131
3232RCT_NOT_IMPLEMENTED (-(instancetype )init)
3333
3434- (uint16_t )coalescingKey
3535{
36- return _coalescingKey;
36+ return _coalescingKey;
3737}
3838
3939- (NSDictionary *)body
4040{
4141 NSDictionary *body = @{
42- @" insets" : @{
43- @" top" : @(_insets.top ),
44- @" right" : @(_insets.right ),
45- @" bottom" : @(_insets.bottom ),
46- @" left" : @(_insets.left ),
47- },
48- @" frame" : @{
49- @" x" : @(_frame.origin .x ),
50- @" y" : @(_frame.origin .y ),
51- @" width" : @(_frame.size .width ),
52- @" height" : @(_frame.size .height ),
53- },
42+ @" insets" : @{
43+ @" top" : @(_insets.top ),
44+ @" right" : @(_insets.right ),
45+ @" bottom" : @(_insets.bottom ),
46+ @" left" : @(_insets.left ),
47+ },
48+ @" frame" : @{
49+ @" x" : @(_frame.origin .x ),
50+ @" y" : @(_frame.origin .y ),
51+ @" width" : @(_frame.size .width ),
52+ @" height" : @(_frame.size .height ),
53+ },
5454 };
5555
5656 return body;
@@ -75,5 +75,5 @@ - (NSArray *)arguments
7575{
7676 return @[ self .viewTag, RCTNormalizeInputEventName (self .eventName), [self body ] ];
7777}
78-
78+
7979@end
0 commit comments