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

108
Views
react-native Hermes enabled causing function expression to be wrong when converting it to string

I am trying to extract a property name from a generic expression.

Normally when using this code below works great.

class Test {
  name: string;
}

const test = function<T>(item: ((x: T) => any) ) {
  return item;
} 


console.log(test<Test>(x=> x.name).toString()) 
// code above should show function(x) { return x.name};
// then I could do substring "name"

but when I enable Hermes

I get function (a0) { [bytecode] } Which is not really what I want.

Is there a way to solve this? Or a setting I could Apply to hermes?

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!