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

110
Views
Encuentre la URL en el texto y agregue TouchableOpacity

Estoy desarrollando un proyecto con React Native. Si hay una URL en un texto, quiero encontrarla y agregar TouchableOpacity . El mismo código funciona en la web, agrego un href, pero cuando agrego un elemento en reaccionar nativo, devuelve [object Object] . Si no agrego el elemento React Native, regresa como texto normal.

 function urlifyFn(text = '') { if (text != '') { var urlRegex = /(https?:\/\/[^\s]+)/g; var row = text.replace(urlRegex, function (url) { return ( <View> <TouchableOpacity onPress={() => Linking.openURL(row)}> <Text>{row}</Text> </TouchableOpacity> </View> ); }); return row; } }

Quiero que se devuelva el elemento React Native en lugar de [object Object]

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!