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

140
Views
Los componentes con estilo nativo de React no pueden anular el estilo del componente

Tengo un problema extraño con los componentes stlyed. Tengo un encabezado de componente con un estilo básico, pero cuando intento usar este componente y extender el estilo, no sucede nada. ¿Alguien puede decirme qué está pasando?

 import styled from 'styled-components/native'; export const Container = styled.SafeAreaView``; export const Content = styled.View` height: 72px; padding: 0 24px; flex-direction: row; align-items: center; justify-content: center; `;

 Header component import React, { PropsWithChildren, FC } from 'react'; import { Container, Content } from './styles'; const Header: FC = ({ children }: PropsWithChildren<unknown>, props) => { return ( <Container {...props}> <Content>{children}</Content> </Container> ); }; export default Header;

 import styled from 'styled-components/native'; import Header from '../components/Header/index'; export const Container = styled(Header)` background: blue; height: 200px; `;

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!