---
title: Modern React Native Styling Patterns
impact: MEDIUM
impactDescription: consistent design, smoother borders, cleaner layouts
tags: styling, css, layout, shadows, gradients
---
## Modern React Native Styling Patterns
Follow these styling patterns for cleaner, more consistent React Native code.
**Always use `borderCurve: 'continuous'` with `borderRadius`:**
```tsx
// Incorrect
{ borderRadius: 12 }
// Correct – smoother iOS-style corners
{ borderRadius: 12, borderCurve: 'continuous' }
```
**Use `gap` instead of margin for spacing between elements:**
```tsx
// Incorrect – margin on children
Title
Subtitle
// Correct – gap on parent
Title
Subtitle
```
**Use `padding` for space within, `gap` for space between:**
```tsx
First
Second
```
**Use `experimental_backgroundImage` for linear gradients:**
```tsx
// Incorrect – third-party gradient library
// Correct – native CSS gradient syntax
```
**Use CSS `boxShadow` string syntax for shadows:**
```tsx
// Incorrect – legacy shadow objects or elevation
{ shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.1 }
{ elevation: 4 }
// Correct – CSS box-shadow syntax
{ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)' }
```
**Avoid multiple font sizes – use weight and color for emphasis:**
```tsx
// Incorrect – varying font sizes for hierarchy
Title
Subtitle
Caption
// Correct – consistent size, vary weight and color
Title
Subtitle
Caption
```
Limiting font sizes creates visual consistency. Use `fontWeight` (bold/semibold)
and grayscale colors for hierarchy instead.