StyleSheet
React Native styles are JavaScript objects passed through the style prop, usually declared once with StyleSheet.create so TypeScript checks every property. There is no cascade: only nested Text inherits text styles. Style arrays merge left to right and skip false entries.
Minimal example
const styles = StyleSheet.create({
pill: { borderRadius: 20, paddingHorizontal: 10 },
open: { backgroundColor: "#DCFCE7" },
});
<View style={[styles.pill, isOpen && styles.open]} />Learn this concept
Lesson 4.1 · React Native screen layoutPrerequisite conceptsCore components
RelatedFlexbox in React Native