---
title: "Discussion on \"Conditional styling in React Native (styled components)\" | Hashnode"
description: "Discussion on \"Conditional styling in React Native (styled components)\". One of the most useful tricks I learned when I started styling screens in React Native was how to conditionally apply CSS to a container.\nSome of the most common use cases were reusing a component in a context where it has a slightly different style,..."
url: "https://hashnode.com/posts/conditional-styling-in-react-native-styled-components/6319ce7c6b34d71380daddf8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Conditional styling in React Native (styled components)](https://laviniatole.hashnode.dev/conditional-styling-in-react-native-styled-components?utm_source=hashnode&utm_medium=feed)

One of the most useful tricks I learned when I started styling screens in React Native was how to conditionally apply CSS to a container. Some of the most common use cases were reusing a component in a context where it has a slightly different style,...

Sep 8, 2022 · 2 min read · laviniatole.hashnode.dev  
Read the article

-   [#react-native](https://hashnode.com/tag/react-native)
-   [#styled-components](https://hashnode.com/tag/styled-components)
-   [#condition-rendering](https://hashnode.com/tag/condition-rendering)
-   [#styling](https://hashnode.com/tag/styling)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)

## Written by

[Lavinia Ţole](https://hashnode.com/@Lavinia)

@Lavinia · Romania

  
[View profile](https://hashnode.com/@Lavinia)

From marketing to software development 🏆

🚀 Software Engineer 📚 Lifelong learner

## Responses 1

Markdown supported · ⌘↵ to post

[Paul Oloyede](https://hashnode.com/@paulayo)

[Sep 9, 2022](https://hashnode.com/posts/conditional-styling-in-react-native-styled-components/6319ce7c6b34d71380daddf8/comment/631aa4c900230a29830dd76b)

Great one here [Lavinia Ţole](https://hashnode.com/@Lavinia)

Thanks for sharing

[Lavinia Ţole](https://hashnode.com/@Lavinia)

[Sep 13, 2022](https://hashnode.com/posts/conditional-styling-in-react-native-styled-components/6319ce7c6b34d71380daddf8/comment/631aa4c900230a29830dd76b#reply-632066b8af1ce46dbc5432e3)

Thank you ^^
