React Native Tutorial - 20 - StyleSheet API

preview_player
Показать описание

📱 Follow Codevolution

StyleSheet API
React Native Tutorial
React Native Tutorial for Beginners
Рекомендации по теме
Комментарии
Автор

Another important thing to note is since it's not CSS, the styles DO NOT CASCADE. So you cannot set the font or color in a parent element and expect it to affect child elements, it won't work.

nanonkay
Автор

If you still have doubts about why we use StyleSheet instead of a simple object, there's another significant reason. Using StyleSheet, which is JavaScript-based styling, allows you to conditionally apply styles.
Eg:

const styles = StyleSheet.create({ container: { backgroundColor: IsRed ? 'red' : 'orange', }

uthayasakthivel
Автор

Hey it's really nice learning from you.. I would request you to plz make a video on the tailwind css and react native end to end config...

latakantsharma
Автор

Thanks for making this video, God bless you.

post_eternity
Автор

Sir could you please make one video on how we can create best file structure in react native?

mishraji
Автор

Do we have framework or component library to design our app? Just like in react tailwind is so much popular and it's component library such as daisy ui or flowbite make design things much easier.

alifhasanshahOfficial