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

232
Views
Cómo cambiar el estilo del componente secundario

¿Cómo puedo cambiar el estilo de un componente secundario del que no tengo control?

Sé sobre overrides pero no puedo ver cómo usarlo aquí.

Por ejemplo

 const styles = StyleSheet.create({ container: { backgroundColor: '#ff0000' }, inner: { backgroundColor: '#00ff00', width: '50px', height: '50px', margin: '10px 10px' } }) class Child extends Component { render() { return ( <div className={styles.container}> <div className={styles.inner}></div> </div> ) } }

Al usar este elemento, sin cambiar nada de su propio código fuente, ¿cómo puedo cambiar su estilo?

 const desiredStylesOfChild = StyleSheet.create({ container: { backgroundColor: '#012345' }, inner: { backgroundColor: '#abcdef', width: '50%', height: '50%', margin: '10% 10%' } }) class Parent extends Component { render() { return ( <h1>Something something</h1> <Child /> ) } }
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!