flemingvincent / expo-supabase-starter

A comprehensive starter project for developing React Native and Expo applications with Supabase as the backend.
MIT License
285 stars 44 forks source link

Question about existing code #36

Closed Rohit685 closed 1 month ago

Rohit685 commented 1 month ago

Whenever I use tailwind in a component, do I have to do:

className={cn("text-blue-200")};

Do I have to do the cn() stuff?

All the styling im adding to the project only works when I save the file and doesnt work when I run the dev server initially and I am very confused.

Rohit685 commented 1 month ago

Another issue is that the app does not update when I save the code....any fixes?

flemingvincent commented 1 month ago

Hi @Rohit685,

The short answer is no, you do not have to use the className={cn("text-blue-200")} notation.

Throughout the application, you will find that tailwind styles can be applied simply by using className="text-blue-200".

The "cn() stuff" is a custom utility used to create more complex styles, which are more common in the styled reusable components, but can still be used in the application.

Regarding your second question about the app not updating when saving, I cannot say without looking at your code. Make sure you follow the instructions in Application Overview and there shouldn't be any issues.