Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to enable logging in production build of React Native app
...
#import "RCTLog.h"
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTSetLogThreshold(RCTLogLevelInfo);
...
@dchersey

This comment has been minimized.

Copy link

@dchersey dchersey commented Mar 4, 2018

This is awesome ... so simple! Note in later versions of React import is

#import <React/RCTLog.h>
@Eyesonly88

This comment has been minimized.

Copy link

@Eyesonly88 Eyesonly88 commented Sep 20, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment