#include "REAIOSLogger.h" #import namespace reanimated { std::unique_ptr Logger::instance = std::make_unique(); void REAIOSLogger::log(const char* str) { NSLog(@"%@", [NSString stringWithCString:str encoding:[NSString defaultCStringEncoding]]); } void REAIOSLogger::log(double d) { NSLog(@"%lf", d); } void REAIOSLogger::log(int i) { NSLog(@"%i", i); } void REAIOSLogger::log(bool b) { const char* str = (b)? "true" : "false"; NSLog(@"%@", [NSString stringWithCString:str encoding:[NSString defaultCStringEncoding]]); } }