improved description for RCTTouchEvent

Summary: This will make error messages more helpful.

Reviewed By: javache

Differential Revision: D3292400

fbshipit-source-id: d1e0bb24593058b75422824c0d351ede1320029e
This commit is contained in:
Martin Kralik
2016-05-24 05:05:51 -07:00
committed by Facebook Github Bot 7
parent a71a9efe96
commit 2c8abebccc

View File

@@ -82,4 +82,9 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
return _coalescingKey;
}
- (NSString *)description
{
return [NSString stringWithFormat:@"<%@: %p; name = %@; coalescing key = %hu>", [self class], self, _eventName, _coalescingKey];
}
@end