Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

218
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda