-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
48 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
packages/react-native-reanimated/apple/reanimated/native/PlatformLogger.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <RNReanimated/PlatformLogger.h> | ||
|
||
namespace reanimated { | ||
|
||
void PlatformLogger::log(const char *str) | ||
{ | ||
NSLog(@"%@", [NSString stringWithCString:str encoding:[NSString defaultCStringEncoding]]); | ||
} | ||
|
||
void PlatformLogger::log(const std::string &str) | ||
{ | ||
log(str.c_str()); | ||
} | ||
|
||
void PlatformLogger::log(const double d) | ||
{ | ||
NSLog(@"%lf", d); | ||
} | ||
|
||
void PlatformLogger::log(const int i) | ||
{ | ||
NSLog(@"%i", i); | ||
} | ||
|
||
void PlatformLogger::log(const bool b) | ||
{ | ||
log(b ? "true" : "false"); | ||
} | ||
|
||
} // namespace reanimated |
15 changes: 0 additions & 15 deletions
15
packages/react-native-reanimated/apple/reanimated/native/REAIOSLogger.h
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
packages/react-native-reanimated/apple/reanimated/native/REAIOSLogger.mm
This file was deleted.
Oops, something went wrong.