Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
does native-base have a utility method that allows us to extract computed theme data?

I am using native base and I want to use some of the theme values for example the primary text color and the main background color

I am looking for something that can take in a theme object as a parameter so I don't need to be in the context yet. So I can't use useTheme()

something along the lines of

computeStyle('Text', { colorScheme: 'primary` }, theme);

The second parameter being props that are applied to Text that may alter the result

The result should have a type of TextStyle | ViewStyle

The tricky bit I found so far is I don't have the theme context as of yet.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda