Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Log to react native console from iOS code

Trying to print to console (terminal) from the iOS code in React Native

In iOS folder, under my RN project:

RNLogger.h file

#import <React/RCTBridgeModule.h>
@interface RNLogger : NSObject <RCTBridgeModule>
@end
RNLogger.m file

#import <React/RCTLog.h>
#import "RNLogger.h"

@implementation RNLogger

RCT_EXPORT_MODULE();

RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(printLog)
{
  RCTLog(@"SOME LOG");
  return @"";
}

@end

And on the RN side:

import {NativeModules} from 'react-native';

NativeModules.RNLogger.printLog();

Does not work for me. Also I've tried with print, printf and NSLog and nothing seems to work.

Basically I want to print on RN console same as console.log would do..

What the right way to do so?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!