4

Styling your React Native Project

 2 years ago
source link: https://dev.to/grover_sumrit/styling-your-react-native-project-jjo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Styling in React Native can be done in various ways.

Let's have a look at a few of the most common ones.

The most basic way of styling is inline JS styles.

You can also use StyleSheets, they are mostly used when you have a large codebase and styles that have to be used in more than one tag.

To integrate StyleSheet in the JSX tags, all you have to do is call them wherever needed

Personal tip...
You can create a separate javascript file for your styles. It helps when you document your code


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK