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

108
Vistas
Cannot use style with tailwind hooked

I'm new to react native and I'm trying to use tailwind just with basic configuration. And not matter what I do , the style is not changing.

The code :

import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import {useTailwind} from 'tailwind-rn';

export default function App() {
  return (
    <View style={useTailwind.style=("flex-1 justify-center items-center")}>
      <Text>This is test</Text>
      <StatusBar style="auto" />
    </View>
  );
}

And what I getting in the iPhone simulation : enter image description here

Any idea why I cannot adding any style ?

Thanks !

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I just recharge the code and install other library :

import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import tw from "tailwind-react-native-classnames";

export default function App() {
  return (
    <View style={tw`flex-1 justify-center items-center`}>
      <Text >This is asd test</Text>
      <StatusBar style="auto" />
    </View>
  );
}
about 4 years ago · Juan Pablo Isaza Denunciar
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