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

171
Views
Use diferentes fonFamilly en la misma línea de texto, en React native

Necesito aplicar en una oración dos fontFamily diferentes.

En la frase "String1: second String" , necesito que "string1:" esté seminegrita , y "second String" sea regular .

 <Text style={[ { color: colors.black, fontFamily: 'Montserrat-SemiBold' }, ]}> String1: <Text style={[ { color: colors.black, fontFamily: 'Montserrat-Regular' }, ]}> second String </Text> </Text>

El resultado del código anterior pone todo el texto en seminegrita.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Para esta pregunta, necesitaba React-Native para hacer que una oración tenga dos fontFamily diferentes. Para esto creamos un para hacer la línea de texto y dentro de ese componente ponemos la oración dividida con las diferentes fontFamily. El resultado final es lo que está en la imagen y la solución el código a continuación.

resultado deseado

La solución es...

 <Text> <Text style={[ { color: colors.black, fontFamily: 'Montserrat-SemiBold' }, ]}> String1: </Text> <Text style={[ { color: colors.black, fontFamily: 'Montserrat-Regular' }, ]}> second String </Text> </Text>

about 4 years ago · Juan Pablo Isaza Report
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!