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

199
Views
¿Por qué la función nativa escrita en el objetivo C no devuelve nada?

Estoy tratando de obtener resultados de la función nativa para usar en la interfaz, aquí está la función,

 RCT_EXPORT_METHOD(getActiveAudioDevice: resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { MediaDevice * _Nullable devices = [meetingSession.audioVideo getActiveAudioDevice]; NSLog(@"Hello Devices: %@", devices); if (!devices) { reject(@"event_failure", @"failed to list audio devices", nil); } else { resolve(devices); } }

Lo estoy activando en JS así,

 const selectedAudioDevice = useCallback(async() => { const activeDevice= await NativeFunction.selectedDevice("") setActiveDevice(activeDevice) }

Cuando activé esto desde la interfaz, puedo ver en los registros que la función nativa está devolviendo un dispositivo, pero en JS todo lo que obtengo no está definido, ¿alguna idea de lo que estoy haciendo mal aquí?

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!