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

102
Views
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 answers
Answer question

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 Report
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!